diff --git a/middle_end/flambda2/validate/test-validate/test-mls/generated-rules.inc b/middle_end/flambda2/validate/test-validate/test-mls/generated-rules.inc index b945b2ca620..011c15c5bc3 100644 --- a/middle_end/flambda2/validate/test-validate/test-mls/generated-rules.inc +++ b/middle_end/flambda2/validate/test-validate/test-mls/generated-rules.inc @@ -5,14 +5,16 @@ (rule (alias runtest) + (enabled_if (= %{context_name} "main")) (deps test1.ml test1.mli) (action (progn - (run %{bin:ocamlopt.opt} -validate test1.mli test1.ml)))) + (run %{bin:ocamlopt.opt} -c -validate test1.mli test1.ml)))) (rule (alias runtest) + (enabled_if (= %{context_name} "main")) (deps test2.ml test2.mli) (action (progn - (run %{bin:ocamlopt.opt} -validate test2.mli test2.ml)))) + (run %{bin:ocamlopt.opt} -c -validate test2.mli test2.ml)))) diff --git a/middle_end/flambda2/validate/test-validate/test-mls/script.ml b/middle_end/flambda2/validate/test-validate/test-mls/script.ml index 3c3983ddba5..6dc25269ef7 100644 --- a/middle_end/flambda2/validate/test-validate/test-mls/script.ml +++ b/middle_end/flambda2/validate/test-validate/test-mls/script.ml @@ -11,11 +11,12 @@ let [@ocamlformat "disable"] print_test_rule ~compiler ~file = Format.printf {| (rule - (alias runtest) + (alias runtest) + (enabled_if (= %{context_name} "main")) (deps %s.ml %s.mli) (action (progn - (run %s -validate %s.mli %s.ml)))) + (run %s -c -validate %s.mli %s.ml)))) |} file file compiler file file