Skip to content

Commit

Permalink
flambda-backend: Config.flambda2 (ocaml-flambda#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshinwell authored and poechsel committed Jun 29, 2021
1 parent ff0e4f7 commit cef0bb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/config.mli
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ val target : string
(** Whether the compiler is a cross-compiler *)

val flambda : bool
(** Whether the compiler was configured for flambda *)
(** Whether the compiler was configured for Flambda 1 *)

val flambda2 : bool
(** Whether the compiler was configured for Flambda 2 *)

val with_flambda_invariants : bool
(** Whether the invariants checks for flambda are enabled *)
Expand Down
1 change: 1 addition & 0 deletions utils/config.mlp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ let mkdll, mkexe, mkmaindll =
"%%MKDLL%%", "%%MKEXE%%", "%%MKMAINDLL%%"

let flambda = %%FLAMBDA%%
let flambda2 = false
let with_flambda_invariants = %%WITH_FLAMBDA_INVARIANTS%%
let safe_string = %%FORCE_SAFE_STRING%%
let default_safe_string = %%DEFAULT_SAFE_STRING%%
Expand Down

0 comments on commit cef0bb6

Please sign in to comment.