core/pkgs/build-support/cc-wrapper/add-clang-cc-cflags-before.sh

12 lines
201 B
Bash
Raw Permalink Normal View History

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