Update pkgs/build-support/cc-wrapper/cc-wrapper.sh

Co-authored-by: Matthew Bauer <mjbauer95@gmail.com>
This commit is contained in:
Moritz Angermann 2021-02-26 10:07:27 +08:00 committed by GitHub
parent 11b4d6c633
commit 60c5cf9cea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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[@]}"} \