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

This commit is contained in:
Christian Jullien 2020-06-22 10:12:18 +02:00
parent 28d5c5e54f
commit f84e96fe81

View file

@ -98,7 +98,17 @@ int main(int argc, char *argv[])
case 't':
puts(TRIPLET);
break;
case 'c':
#if defined(__clang__)
puts("clang");
#elif defined(__TINYC__)
puts("tcc");
#elif defiend(__GNUC__)
puts("gcc");
#else
puts("unknown");
#endif
break;
default:
break;
}