mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
0fdc72b7e9
This way gcc doesn't need to be rebuilt because of clang. This also avoids rebuilding clang when only the wrapper needs to be tweaked.
12 lines
193 B
Bash
12 lines
193 B
Bash
needsTarget=true
|
|
|
|
for p in "${params[@]}"; do
|
|
case "$p" in
|
|
-target | --target=*) needsTarget=false ;;
|
|
esac
|
|
done
|
|
|
|
if $needsTarget; then
|
|
extraBefore+=(-target @defaultTarget@)
|
|
fi
|