mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
zig: drop conditionals for versions < 0.12
we only package 0.13+ in nixpkgs.
This commit is contained in:
@@ -157,13 +157,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
# https://github.com/ziglang/zig/issues/14281#issuecomment-1624220653
|
||||
zig_default_cpu_flag = "-Dcpu=baseline";
|
||||
|
||||
zig_default_optimize_flag =
|
||||
if lib.versionAtLeast finalAttrs.version "0.12" then
|
||||
"--release=safe"
|
||||
else if lib.versionAtLeast finalAttrs.version "0.11" then
|
||||
"-Doptimize=ReleaseSafe"
|
||||
else
|
||||
"-Drelease-safe=true";
|
||||
zig_default_optimize_flag = "--release=safe";
|
||||
};
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
Reference in New Issue
Block a user