From 823f41dc9fa54efc7c55d3e1df8df7e5797837fb Mon Sep 17 00:00:00 2001 From: Emilio Jesus Gallego Arias Date: Tue, 9 Oct 2018 14:28:04 +0200 Subject: [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. --- dune | 13 +++++++++---- 1 file 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 -- cgit v1.2.3