From 4e94682a17ce30271b302f1285f56fa11dfefd53 Mon Sep 17 00:00:00 2001 From: ยท๐‘‘๐‘ด๐‘•๐‘‘๐‘ฉ๐‘ค Date: Tue, 23 Dec 2025 06:22:23 +0000 Subject: compile: release env --- bin/dune | 9 +++++++++ nix/package/nixtamal.nix | 4 ++++ 2 files changed, 13 insertions(+) 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 -- cgit v1.2.3