Skip to content

Commit 9ac4ca7

Browse files
committed
Fix
Signed-off-by: Nicolás Ojeda Bär <n.oje.bar@gmail.com>
1 parent f5ea470 commit 9ac4ca7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/dune_rules/ocaml_flags.ml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,13 @@ let dune_warnings ~dune_version ~profile =
6363
;;
6464

6565
let default_flags ~dune_version ~profile =
66-
if dune_version < (3, 21)
67-
then dune_warnings ~dune_version ~profile
68-
else if Profile.is_dev profile
69-
then [ "-short-paths"; "-keep-locs"; "-warn-error"; "+a" ]
66+
(if dune_version < (3, 21) then dune_warnings ~dune_version ~profile else [])
67+
@
68+
if Profile.is_dev profile
69+
then
70+
"-short-paths"
71+
:: "-keep-locs"
72+
:: (if dune_version >= (3, 21) then [ "-warn-error"; "+a" ] else [])
7073
else []
7174
;;
7275

0 commit comments

Comments
 (0)