diff options
author | 2017-12-14 17:23:13 +0100 | |
---|---|---|
committer | 2017-12-14 17:23:13 +0100 | |
commit | 1853470c78d1a8aa2525dd57bbfce1064d359ff2 (patch) | |
tree | d0af37b803fd6113e9fdc12f37501af3c8eba7ae /pretyping | |
parent | 84e570d7c532f16104157b806da714906fdf26b3 (diff) | |
parent | 4554a860ffdcb30bf5711bd52f443484f9f950d9 (diff) |
Merge PR #6264: [kernel] Patch allowing to disable VM reduction.
Diffstat (limited to 'pretyping')
-rw-r--r-- | pretyping/nativenorm.ml | 4 | ||||
-rw-r--r-- | pretyping/vnorm.ml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pretyping/nativenorm.ml b/pretyping/nativenorm.ml index dafe8cb26..79e0afa72 100644 --- a/pretyping/nativenorm.ml +++ b/pretyping/nativenorm.ml @@ -436,11 +436,11 @@ let stop_profiler m_pid = match profiler_platform() with "Unix (Linux)" -> stop_profiler_linux 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 Coq_config.no_native_compiler then + if not Coq_config.native_compiler then user_err Pp.(str "Native_compute reduction has been disabled at configure time.") else let penv = Environ.pre_env env in diff --git a/pretyping/vnorm.ml b/pretyping/vnorm.ml index b5b8987e3..e395bdbc6 100644 --- a/pretyping/vnorm.ml +++ b/pretyping/vnorm.ml @@ -365,4 +365,4 @@ let vm_infer_conv ?(pb=Reduction.CUMUL) env sigma t1 t2 = Reductionops.infer_conv_gen (fun pb ~l2r sigma ts -> Vconv.vm_conv_gen pb) ~catch_incon:true ~pb env sigma t1 t2 -let _ = Reductionops.set_vm_infer_conv vm_infer_conv +let _ = if Coq_config.bytecode_compiler then Reductionops.set_vm_infer_conv vm_infer_conv |