History

macos: Reorder C compiler detection so that conftest allows to boostrap tcc with tcc on macos.

Christian Jullien committed 6 years ago

Commit a3d1e9c1 parent 8d9b83b1 file · +7 −9Browse files

Unified · Split

conftest.c+7−9
@@ -65,7 +65,6 @@ int main(int argc, char *argv[]) · 64 unmodified lines
6565 puts(*(unsigned char*)&foo == 0x67 ? "no" : "yes");
6666 break;
6767 }
68−#ifdef __GNUC__
6968 #ifdef __clang__
7069 case 'm':
7170 printf("%d\n", __clang_minor__);
@@ -73,14 +72,6 @@ int main(int argc, char *argv[]) · 1 unmodified line
7372 case 'v':
7473 printf("%d\n", __clang_major__);
7574 break;
76−#else
77− case 'm':
78− printf("%d\n", __GNUC_MINOR__);
79− break;
80− case 'v':
81− printf("%d\n", __GNUC__);
82− break;
83−#endif
8475 #elif defined __TINYC__
8576 case 'v':
8677 puts("0");
@@ -88,6 +79,13 @@ int main(int argc, char *argv[]) · 1 unmodified line
8879 case 'm':
8980 printf("%d\n", __TINYC__);
9081 break;
82+#elif defined( __GNUC__) && defined(__GNUC_MINOR__)
83+ case 'm':
84+ printf("%d\n", __GNUC_MINOR__);
85+ break;
86+ case 'v':
87+ printf("%d\n", __GNUC__);
88+ break;
9189 #else
9290 case 'm':
9391 case 'v':

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