History

macos: add 'c' option to conftest to get real compiler name and not an alias as with gcc on macOS

Christian Jullien committed 6 years ago

Commit f84e96f1 parent 28d5c5e1 file · +11 −1Browse files

Unified · Split

conftest.c+11−1
@@ -98,7 +98,17 @@ int main(int argc, char *argv[]) · 97 unmodified lines
98 case 't':98 case 't':
99 puts(TRIPLET);99 puts(TRIPLET);
100 break;100 break;
101 101 case 'c':
102#if defined(__clang__)
103 puts("clang");
104#elif defined(__TINYC__)
105 puts("tcc");
106#elif defiend(__GNUC__)
107 puts("gcc");
108#else
109 puts("unknown");
110#endif
111 break;
102 default:112 default:
103 break;113 break;
104 }114 }

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