diff options
author | Andrew Childs <lorne@cons.org.nz> | 2021-03-09 14:01:34 +0900 |
---|---|---|
committer | Andrew Childs <lorne@cons.org.nz> | 2021-03-09 14:01:34 +0900 |
commit | 86e962a41a7a4a40c7a74d3ea765d9363771fcb7 (patch) | |
tree | 7846bb91c562ffc1626b9d32c832cb04b20d82b3 | |
parent | 3db2dee35fc6478a91e41cac08737cd80a3163d4 (diff) |
cc-wrapper: remove quoting of response file
Fixes build failures with clang: clang-7: error: unknown argument: '-fPIC -target' clang-7: error: no such file or directory: '@<(printf %qn -O2' clang-7: error: no such file or directory: 'x86_64-apple-darwin' Introduced by 60c5cf9cea56ffd607b48fe07ff1174ea6a13afc in #112449
-rw-r--r-- | pkgs/build-support/cc-wrapper/cc-wrapper.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/cc-wrapper/cc-wrapper.sh b/pkgs/build-support/cc-wrapper/cc-wrapper.sh index f033836a962f6..d08fd24cd2d62 100644 --- a/pkgs/build-support/cc-wrapper/cc-wrapper.sh +++ b/pkgs/build-support/cc-wrapper/cc-wrapper.sh @@ -200,10 +200,10 @@ PATH="$path_backup" # Old bash workaround, see above. if (( "${NIX_CC_USE_RESPONSE_FILE:-@use_response_file_by_default@}" >= 1 )); then - exec @prog@ "@<(printf "%q\n" \ + exec @prog@ @<(printf "%q\n" \ ${extraBefore+"${extraBefore[@]}"} \ ${params+"${params[@]}"} \ - ${extraAfter+"${extraAfter[@]}"})" + ${extraAfter+"${extraAfter[@]}"}) else exec @prog@ \ ${extraBefore+"${extraBefore[@]}"} \ |