cc-wrapper: Use MacOS compatible mktemp command

The commit 6f2b3ba027f0d74614ba1b21f15ea45b0beb0385 introduced a
`mktemp` invokation that uses the `--tmpdir` flag, which is not
available on MacOS.

This changes the invokation to a portable one based on the following
StackOverflow answer https://stackoverflow.com/a/31397073/841562 .

+1 -1
+1 -1
pkgs/build-support/cc-wrapper/cc-wrapper.sh
··· 246 fi 247 248 if (( "${NIX_CC_USE_RESPONSE_FILE:-@use_response_file_by_default@}" >= 1 )); then 249 - responseFile=$(mktemp --tmpdir cc-params.XXXXXX) 250 trap 'rm -f -- "$responseFile"' EXIT 251 printf "%q\n" \ 252 ${extraBefore+"${extraBefore[@]}"} \
··· 246 fi 247 248 if (( "${NIX_CC_USE_RESPONSE_FILE:-@use_response_file_by_default@}" >= 1 )); then 249 + responseFile=$(mktemp "${TMPDIR:-/tmp}/cc-params.XXXXXX") 250 trap 'rm -f -- "$responseFile"' EXIT 251 printf "%q\n" \ 252 ${extraBefore+"${extraBefore[@]}"} \