diff options
| author | Maxime Dénès | 2020-04-01 11:09:13 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2020-04-01 11:09:13 +0200 |
| commit | 828b79f744ffc1f292a77a80553906544c1c0cfb (patch) | |
| tree | f267db7f0d4895e14548281d59e61cd11379ebf4 /lib/flags.ml | |
| parent | eacddd7054ddc04eafc8292ae80be84649b940d1 (diff) | |
| parent | acba2419a4cebb2b55bad2aefa2062640ffe8828 (diff) | |
Merge PR #11306: Centralize the flag handling native compilation.
Ack-by: SkySkimmer
Reviewed-by: maximedenes
Diffstat (limited to 'lib/flags.ml')
| -rw-r--r-- | lib/flags.ml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/flags.ml b/lib/flags.ml index 2832ddd27a..1d9d6d49bc 100644 --- a/lib/flags.ml +++ b/lib/flags.ml @@ -82,3 +82,11 @@ let get_inline_level () = !inline_level let profile_ltac = ref false let profile_ltac_cutoff = ref 2.0 + +let native_compiler = ref None +let get_native_compiler () = match !native_compiler with +| None -> assert false +| Some b -> b +let set_native_compiler b = + let () = assert (!native_compiler == None) in + native_compiler := Some b |
