History

macos: detect clang also when called as gcc

Michael Matz committed 6 years ago

Commit 6178e471 parent 032664b1 file · +1 −1Browse files

Unified · Split

configure+1−1
@@ -375,7 +375,7 @@ if ! echo "$cc" | grep -q "tcc"; then · 374 unmodified lines
375375 OPT1="-Wdeclaration-after-statement -fno-strict-aliasing"
376376 # we want -Wno- but gcc does not always reject unknown -Wno- options
377377 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
379379 OPT1="$OPT1 -fheinous-gnu-extensions"
380380 OPT2="$OPT2 -Wstring-plus-int"
381381 fi

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t