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
65 puts(*(unsigned char*)&foo == 0x67 ? "no" : "yes");65 puts(*(unsigned char*)&foo == 0x67 ? "no" : "yes");
66 break;66 break;
67 }67 }
68#ifdef __GNUC__
69#ifdef __clang__68#ifdef __clang__
70 case 'm':69 case 'm':
71 printf("%d\n", __clang_minor__);70 printf("%d\n", __clang_minor__);
@@ -73,14 +72,6 @@ int main(int argc, char *argv[]) · 1 unmodified line
73 case 'v':72 case 'v':
74 printf("%d\n", __clang_major__);73 printf("%d\n", __clang_major__);
75 break;74 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
84#elif defined __TINYC__75#elif defined __TINYC__
85 case 'v':76 case 'v':
86 puts("0");77 puts("0");
@@ -88,6 +79,13 @@ int main(int argc, char *argv[]) · 1 unmodified line
88 case 'm':79 case 'm':
89 printf("%d\n", __TINYC__);80 printf("%d\n", __TINYC__);
90 break;81 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;
91#else89#else
92 case 'm':90 case 'm':
93 case 'v':91 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