summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorArtturi <Artturin@artturin.com>2023-10-08 11:38:14 +0300
committerGitHub <noreply@github.com>2023-10-08 11:38:14 +0300
commit187f681cb4921d413ad940834baab18654cb0f9a (patch)
tree1fb299b40dff29928a7b524e98d72bddefcae0d1 /pkgs/build-support
parentb64b1ed7592e47510120c58f39b93c5ce79c7998 (diff)
parent13a4690d0d9f140eeb2d253184b5271d3010469e (diff)
downloadnixpkgs-187f681cb4921d413ad940834baab18654cb0f9a.tar
nixpkgs-187f681cb4921d413ad940834baab18654cb0f9a.tar.gz
nixpkgs-187f681cb4921d413ad940834baab18654cb0f9a.tar.bz2
nixpkgs-187f681cb4921d413ad940834baab18654cb0f9a.tar.lz
nixpkgs-187f681cb4921d413ad940834baab18654cb0f9a.tar.xz
nixpkgs-187f681cb4921d413ad940834baab18654cb0f9a.tar.zst
nixpkgs-187f681cb4921d413ad940834baab18654cb0f9a.zip
Merge pull request #258608 from aherrmann/macos-mktemp
MacOS compatible mktemp in cc-wrapper
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/cc-wrapper/cc-wrapper.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/cc-wrapper/cc-wrapper.sh b/pkgs/build-support/cc-wrapper/cc-wrapper.sh
index 6c43f8cbfa6..b8d170df01b 100644
--- a/pkgs/build-support/cc-wrapper/cc-wrapper.sh
+++ b/pkgs/build-support/cc-wrapper/cc-wrapper.sh
@@ -246,7 +246,7 @@ if [[ -e @out@/nix-support/cc-wrapper-hook ]]; then
 fi
 
 if (( "${NIX_CC_USE_RESPONSE_FILE:-@use_response_file_by_default@}" >= 1 )); then
-    responseFile=$(mktemp --tmpdir cc-params.XXXXXX)
+    responseFile=$(mktemp "${TMPDIR:-/tmp}/cc-params.XXXXXX")
     trap 'rm -f -- "$responseFile"' EXIT
     printf "%q\n" \
        ${extraBefore+"${extraBefore[@]}"} \