aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2018-10-09 14:28:04 +0200
committerEmilio Jesus Gallego Arias2018-10-11 15:23:00 +0200
commit823f41dc9fa54efc7c55d3e1df8df7e5797837fb (patch)
tree79e44f4f78923ec48206f09617c6a60cbdd50362
parent4a6ddf4fdc4790fc407dc98bcfb80fd816cab304 (diff)
[dune] Add optimizing flags to release profile.
- In `release` profile, we use an optimizing set of flags. This will only affect to people using a Flambda-enabled OCaml. - We use the `_` pattern for flags that are common to all profiles.
-rw-r--r--dune13
1 files changed, 9 insertions, 4 deletions
diff --git a/dune b/dune
index 240550cf94..f12633206f 100644
--- a/dune
+++ b/dune
@@ -1,10 +1,15 @@
; Default flags for all Coq libraries.
(env
(dev (flags :standard -rectypes -w -9-27-50+40+60))
- (release (flags :standard -rectypes))
- (ireport
- (flags :standard -rectypes -w -9-27-50+40+60)
- (ocamlopt_flags :standard -O3 -unbox-closures -inlining-report)))
+ (release (flags :standard -rectypes)
+ (ocamlopt_flags -O3 -unbox-closures))
+ (ireport (flags :standard -rectypes -w -9-27-50+40+60)
+ (ocamlopt_flags :standard -O3 -unbox-closures -inlining-report)))
+
+; The _ profile could help factoring the above, however it doesn't
+; seem to work like we'd expect/like:
+;
+; (_ (flags :standard -rectypes)))
; Rules for coq_dune
(rule