depot/third_party/nixpkgs/pkgs/build-support/cc-wrapper/add-clang-cc-cflags-before.sh

12 lines
193 B
Bash
Raw Normal View History

needsTarget=true
for p in "${params[@]}"; do
case "$p" in
-target | --target=*) needsTarget=false ;;
esac
done
if $needsTarget; then
extraBefore+=(-target @defaultTarget@)
fi