mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
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
|