summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/dune9
-rw-r--r--nix/package/nixtamal.nix4
2 files changed, 13 insertions, 0 deletions
diff --git a/bin/dune b/bin/dune
index 3dc72b3..5705f13 100644
--- a/bin/dune
+++ b/bin/dune
@@ -15,3 +15,12 @@
uri)
(preprocess
(pps ppx_deriving.show ppx_deriving.eq ppx_deriving.ord ppx_deriving.make)))
+
+(env
+ (release
+ (ocamlopt_flags
+ (:standard
+ -O3
+ -unbox-closures
+ -unboxed-types
+ (-inline-max-depth 8)))))
diff --git a/nix/package/nixtamal.nix b/nix/package/nixtamal.nix
index bf4e576..833e381 100644
--- a/nix/package/nixtamal.nix
+++ b/nix/package/nixtamal.nix
@@ -54,6 +54,10 @@ ocamlPackages.buildDunePackage {
]) (fs.maybeMissing ../../_build);
};
+ env = {
+ DUNE_PROFILE = "release";
+ };
+
nativeBuildInputs = [
python3Packages.docutils
# NOTE: no KDL support