zig.hook: reword
This commit is contained in:
parent
b058a2fc29
commit
fd774bd82b
|
@ -10,10 +10,13 @@ makeSetupHook {
|
|||
|
||||
substitutions = {
|
||||
zig_default_flags =
|
||||
if lib.versionAtLeast zig.version "0.11" then
|
||||
"-Doptimize=ReleaseSafe -Dcpu=baseline"
|
||||
else
|
||||
"-Drelease-safe=true -Dcpu=baseline";
|
||||
let
|
||||
cpu = "-Dcpu=baseline";
|
||||
releaseType = if lib.versionAtLeast zig.version "0.11"
|
||||
then "-Doptimize=ReleaseSafe"
|
||||
else "-Drelease-safe=true";
|
||||
in
|
||||
lib.concatStringsSep " " [ cpu releaseType ];
|
||||
};
|
||||
|
||||
passthru = { inherit zig; };
|
||||
|
|
Loading…
Reference in a new issue