core/pkgs/build-support/cc-wrapper/add-clang-cc-cflags-before.sh
2024-05-13 11:34:52 -04:00

12 lines
201 B
Bash

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