mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
11 lines
228 B
Bash
11 lines
228 B
Bash
needsTarget=true
|
|
|
|
for p in "${params[@]}"; do
|
|
case "$p" in
|
|
-target | --target=*) needsTarget=false ;;
|
|
esac
|
|
done
|
|
|
|
if $needsTarget && [[ $0 != *cpp ]]; then
|
|
extraBefore+=(-target @defaultTarget@ @machineFlags@)
|
|
fi
|