Update pkgs/build-support/cc-wrapper/cc-wrapper.sh
Co-authored-by: Matthew Bauer <mjbauer95@gmail.com>
This commit is contained in:
parent
11b4d6c633
commit
60c5cf9cea
|
@ -182,13 +182,10 @@ PATH="$path_backup"
|
||||||
# Old bash workaround, see above.
|
# Old bash workaround, see above.
|
||||||
|
|
||||||
if (( "${NIX_CC_USE_RESPONSE_FILE:-@use_response_file_by_default@}" >= 1 )); then
|
if (( "${NIX_CC_USE_RESPONSE_FILE:-@use_response_file_by_default@}" >= 1 )); then
|
||||||
RESPONSE_FILE=$(mktemp)
|
exec @prog@ "@<(printf "%q\n" \
|
||||||
printf "%q\n" \
|
|
||||||
${extraBefore+"${extraBefore[@]}"} \
|
${extraBefore+"${extraBefore[@]}"} \
|
||||||
${params+"${params[@]}"} \
|
${params+"${params[@]}"} \
|
||||||
${extraAfter+"${extraAfter[@]}"} \
|
${extraAfter+"${extraAfter[@]}"})"
|
||||||
> "${RESPONSE_FILE}"
|
|
||||||
exec @prog@ "@${RESPONSE_FILE}"
|
|
||||||
else
|
else
|
||||||
exec @prog@ \
|
exec @prog@ \
|
||||||
${extraBefore+"${extraBefore[@]}"} \
|
${extraBefore+"${extraBefore[@]}"} \
|
||||||
|
|
Loading…
Reference in a new issue