cc-wrapper: exclude clang flags when cpp

This commit is contained in:
Tristan Ross 2024-07-23 22:53:06 -07:00
parent b204bd7963
commit 3c6127cf01
No known key found for this signature in database
GPG Key ID: B09C422035669AF8

View File

@ -6,6 +6,6 @@ for p in "${params[@]}"; do
esac
done
if $needsTarget; then
if $needsTarget && [[ $0 != *cpp ]]; then
extraBefore+=(-target @defaultTarget@ @machineFlags@)
fi