Unified · Split
| @@ -375,7 +375,7 @@ if ! echo "$cc" | grep -q "tcc"; then · 374 unmodified lines | ||
| 375 | 375 | OPT1="-Wdeclaration-after-statement -fno-strict-aliasing" |
| 376 | 376 | # we want -Wno- but gcc does not always reject unknown -Wno- options |
| 377 | 377 | OPT2="-Wpointer-sign -Wsign-compare -Wunused-result -Wformat-truncation" |
| 378 | − if echo "$cc" | grep -q "clang"; then | |
| 378 | + if $cc --version 2>&1 | grep -q "clang"; then | |
| 379 | 379 | OPT1="$OPT1 -fheinous-gnu-extensions" |
| 380 | 380 | OPT2="$OPT2 -Wstring-plus-int" |
| 381 | 381 | fi |