From cb7a4a9ddfbb11de1caf3f964e791017d4cac6be Mon Sep 17 00:00:00 2001 From: Marek Kubica Date: Fri, 3 Jul 2026 15:08:36 +0200 Subject: [PATCH] Use same compiler settings for `.#dune` and `.#dune-static` The nix-overlay enables `flambda` automatically and in the flake we disable it for `dune`, instead enabling frame pointers. However, this is not the case for `dune-static`, where we use the regular `ocaml` package (from the overlay) which uses `flambda` but no frame pointers. This applies the same compiler configuration to `dune-static` as to `dune`. Signed-off-by: Marek Kubica --- nix/dune-package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/dune-package.nix b/nix/dune-package.nix index 9bb0a2eacc8..eb2a3a0b11c 100644 --- a/nix/dune-package.nix +++ b/nix/dune-package.nix @@ -41,6 +41,10 @@ let dune-static-overlay = self: super: { ocamlPackages = super.ocaml-ng.ocamlPackages_5_4.overrideScope ( oself: osuper: { + ocaml = osuper.ocaml.override { + flambdaSupport = false; + framePointerSupport = true; + }; dune_3 = osuper.dune_3.overrideAttrs (a: { src = dune-source; preBuild = "ocaml boot/bootstrap.ml --static";