diff options
| author | Emilio Jesus Gallego Arias | 2017-11-28 01:49:52 +0100 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2017-12-02 02:26:18 +0100 |
| commit | 4554a860ffdcb30bf5711bd52f443484f9f950d9 (patch) | |
| tree | 395170d967938af22d8792ae4e488ad230ad6547 /lib | |
| parent | 0048cbe810c82a775558c14cd7fcae644e205c51 (diff) | |
[kernel] Patch allowing to disable VM reduction.
The patch has three parts:
- Introduction of a configure flag `-bytecode-compiler (yes|no)`
(due to static initialization this is a configure-time option)
- Installing the hooks that register the VM with the pretyper and the
kernel conditionally on the flag.
- Replacing the normalization function in `Redexpr` by compute if the
VM is disabled.
We also rename `Coq_config.no_native_compiler` to `native_compiler`
and `Flags.native_compiler` to `output_native_objects` [see #4607].
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/flags.ml | 2 | ||||
| -rw-r--r-- | lib/flags.mli | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/flags.ml b/lib/flags.ml index ddc8f84825..23b25756e8 100644 --- a/lib/flags.ml +++ b/lib/flags.ml @@ -195,7 +195,7 @@ let set_inline_level = (:=) inline_level let get_inline_level () = !inline_level (* Native code compilation for conversion and normalization *) -let native_compiler = ref false +let output_native_objects = ref false (* Print the mod uid associated to a vo file by the native compiler *) let print_mod_uid = ref false diff --git a/lib/flags.mli b/lib/flags.mli index c4afb83186..9f322db462 100644 --- a/lib/flags.mli +++ b/lib/flags.mli @@ -154,8 +154,8 @@ val set_inline_level : int -> unit val get_inline_level : unit -> int val default_inline_level : int -(** Native code compilation for conversion and normalization *) -val native_compiler : bool ref +(** When producing vo objects, also compile the native-code version *) +val output_native_objects : bool ref (** Print the mod uid associated to a vo file by the native compiler *) val print_mod_uid : bool ref |
