Skip to content

Commit 5740ebd

Browse files
authored
flambda-backend: Enable warnings-as-errors (#1796)
1 parent 374a2fb commit 5740ebd

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Makefile.common-jst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ define dune_boot_context
2020
(context (default
2121
(name default)
2222
; CR sdolan: profile dev might be faster, but the compiler currently fails to build in dev.
23-
(profile boot)))
23+
(profile boot)
24+
(env (_
25+
(flags (:standard -warn-error +A))
26+
(env-vars ("OCAMLPARAM" ""))))))
2427
endef
2528

2629
define dune_runtime_stdlib_context
@@ -31,8 +34,9 @@ define dune_runtime_stdlib_context
3134
(paths
3235
(PATH ("$(CURDIR)/_build/_bootinstall/bin" :standard))
3336
(OCAMLLIB ("$(CURDIR)/_build/_bootinstall/lib/ocaml")))
34-
(env (_ (env-vars
35-
("OCAMLPARAM" "$(BUILD_OCAMLPARAM)"))))))
37+
(env (_
38+
(flags (:standard -warn-error +A))
39+
(env-vars ("OCAMLPARAM" "$(BUILD_OCAMLPARAM)"))))))
3640
endef
3741

3842
define dune_main_context
@@ -43,8 +47,9 @@ define dune_main_context
4347
(paths
4448
(PATH ("$(CURDIR)/_build/_bootinstall/bin" :standard))
4549
(OCAMLLIB ("$(CURDIR)/_build/install/runtime_stdlib/lib/ocaml_runtime_stdlib")))
46-
(env (_ (env-vars
47-
("OCAMLPARAM" "$(BUILD_OCAMLPARAM)"))))))
50+
(env (_
51+
(flags (:standard -warn-error +A))
52+
(env-vars ("OCAMLPARAM" "$(BUILD_OCAMLPARAM)"))))))
4853
endef
4954

5055

0 commit comments

Comments
 (0)