We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5ea470 commit 9ac4ca7Copy full SHA for 9ac4ca7
src/dune_rules/ocaml_flags.ml
@@ -63,10 +63,13 @@ let dune_warnings ~dune_version ~profile =
63
;;
64
65
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" ]
+ (if dune_version < (3, 21) then dune_warnings ~dune_version ~profile else [])
+ @
+ if Profile.is_dev profile
+ then
70
+ "-short-paths"
71
+ :: "-keep-locs"
72
+ :: (if dune_version >= (3, 21) then [ "-warn-error"; "+a" ] else [])
73
else []
74
75
0 commit comments