mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 03:25:36 +00:00
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 New Issue
Block a user