zig.hook: allow for global build flag overrides

This commit is contained in:
Justin Restivo
2025-09-21 10:40:41 -04:00
parent 29352bd64a
commit 2f7e7091a8
+2 -4
View File
@@ -4,6 +4,7 @@
zig,
stdenv,
xcbuild,
globalBuildFlags ? [ "-Dcpu=baseline" ],
}:
makeSetupHook {
@@ -47,10 +48,7 @@ makeSetupHook {
else
"-Drelease-safe=true";
in
[
"-Dcpu=baseline"
releaseType
];
globalBuildFlags ++ [ releaseType ];
};
passthru = { inherit zig; };