Skip to content

Commit

Permalink
flambda-backend: Enable warnings-as-errors (#1796)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshinwell authored Sep 5, 2023
1 parent 374a2fb commit 5740ebd
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Makefile.common-jst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ define dune_boot_context
(context (default
(name default)
; CR sdolan: profile dev might be faster, but the compiler currently fails to build in dev.
(profile boot)))
(profile boot)
(env (_
(flags (:standard -warn-error +A))
(env-vars ("OCAMLPARAM" ""))))))
endef

define dune_runtime_stdlib_context
Expand All @@ -31,8 +34,9 @@ define dune_runtime_stdlib_context
(paths
(PATH ("$(CURDIR)/_build/_bootinstall/bin" :standard))
(OCAMLLIB ("$(CURDIR)/_build/_bootinstall/lib/ocaml")))
(env (_ (env-vars
("OCAMLPARAM" "$(BUILD_OCAMLPARAM)"))))))
(env (_
(flags (:standard -warn-error +A))
(env-vars ("OCAMLPARAM" "$(BUILD_OCAMLPARAM)"))))))
endef

define dune_main_context
Expand All @@ -43,8 +47,9 @@ define dune_main_context
(paths
(PATH ("$(CURDIR)/_build/_bootinstall/bin" :standard))
(OCAMLLIB ("$(CURDIR)/_build/install/runtime_stdlib/lib/ocaml_runtime_stdlib")))
(env (_ (env-vars
("OCAMLPARAM" "$(BUILD_OCAMLPARAM)"))))))
(env (_
(flags (:standard -warn-error +A))
(env-vars ("OCAMLPARAM" "$(BUILD_OCAMLPARAM)"))))))
endef


Expand Down

0 comments on commit 5740ebd

Please sign in to comment.