aboutsummaryrefslogtreecommitdiff
path: root/pretyping
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2019-12-18 15:55:23 +0100
committerPierre-Marie Pédrot2019-12-22 14:04:53 +0100
commitacba2419a4cebb2b55bad2aefa2062640ffe8828 (patch)
tree44231e66a98a36360041c9d48123507ca894ca79 /pretyping
parent9c75b6a6582620e2fb9a39c1ea1aa46a321af6a7 (diff)
Centralize the flag handling native compilation.
Instead of relying on the Coq_config immutable flag, we introduce an initialization-only flag to govern the use of the native compiler. This allows to make coqc passed with "-native-compiler no" behave as if it had been configured without native compilation.
Diffstat (limited to 'pretyping')
-rw-r--r--pretyping/nativenorm.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/pretyping/nativenorm.ml b/pretyping/nativenorm.ml
index 2db674d397..f87a350728 100644
--- a/pretyping/nativenorm.ml
+++ b/pretyping/nativenorm.ml
@@ -486,8 +486,8 @@ let stop_profiler m_pid =
let native_norm env sigma c ty =
let c = EConstr.Unsafe.to_constr c in
let ty = EConstr.Unsafe.to_constr ty in
- if not Coq_config.native_compiler then
- user_err Pp.(str "Native_compute reduction has been disabled at configure time.")
+ if not (Flags.get_native_compiler ()) then
+ user_err Pp.(str "Native_compute reduction has been disabled.")
else
(*
Format.eprintf "Numbers of free variables (named): %i\n" (List.length vl1);