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.
|
||||
|
||||
if (( "${NIX_CC_USE_RESPONSE_FILE:-@use_response_file_by_default@}" >= 1 )); then
|
||||
RESPONSE_FILE=$(mktemp)
|
||||
printf "%q\n" \
|
||||
exec @prog@ "@<(printf "%q\n" \
|
||||
${extraBefore+"${extraBefore[@]}"} \
|
||||
${params+"${params[@]}"} \
|
||||
${extraAfter+"${extraAfter[@]}"} \
|
||||
> "${RESPONSE_FILE}"
|
||||
exec @prog@ "@${RESPONSE_FILE}"
|
||||
${extraAfter+"${extraAfter[@]}"})"
|
||||
else
|
||||
exec @prog@ \
|
||||
${extraBefore+"${extraBefore[@]}"} \
|
||||
|
|
Loading…
Reference in New Issue