zig: fix performance issue

This commit is contained in:
Patryk Sondej
2025-11-10 00:23:07 +01:00
parent e1ebeec86b
commit a35e308a57
2 changed files with 2 additions and 6 deletions
+1 -3
View File
@@ -4,7 +4,6 @@
zig,
runCommand,
makeWrapper,
coreutils,
}:
let
targetPrefix = lib.optionalString (
@@ -30,8 +29,7 @@ runCommand "zig-bintools-${zig.version}"
for tool in ar objcopy ranlib ld.lld; do
makeWrapper "$zig/bin/zig" "$out/bin/$tool" \
--add-flags "$tool" \
--suffix PATH : "${lib.makeBinPath [ coreutils ]}" \
--run "export ZIG_GLOBAL_CACHE_DIR=\$(mktemp -d)"
--run "export ZIG_GLOBAL_CACHE_DIR=\$TMPDIR/zig-cache"
done
ln -s $out/bin/ld.lld $out/bin/ld
+1 -3
View File
@@ -4,7 +4,6 @@
zig,
stdenv,
makeWrapper,
coreutils,
}:
let
targetPrefix = lib.optionalString (
@@ -34,8 +33,7 @@ runCommand "zig-cc-${zig.version}"
for tool in cc c++ ld.lld; do
makeWrapper "$zig/bin/zig" "$out/bin/$tool" \
--add-flags "$tool" \
--suffix PATH : "${lib.makeBinPath [ coreutils ]}" \
--run "export ZIG_GLOBAL_CACHE_DIR=\$(mktemp -d)"
--run "export ZIG_GLOBAL_CACHE_DIR=\$TMPDIR/zig-cache"
done
ln -s $out/bin/c++ $out/bin/clang++