mirror of
https://github.com/frida/tinycc
synced 2024-11-27 10:09:42 +03:00
macOS configure correctly reports clang and version
This commit is contained in:
parent
ba8980f492
commit
8d9b83bd11
1
configure
vendored
1
configure
vendored
@ -55,6 +55,7 @@ case $targetos in
|
||||
Darwin)
|
||||
confvars="$confvars OSX"
|
||||
tcc_usrinclude="`xcrun --show-sdk-path`/usr/include"
|
||||
cc="clang"
|
||||
DLLSUF=".dylib"
|
||||
;;
|
||||
Windows_NT|MINGW*|MSYS*|CYGWIN*)
|
||||
|
@ -66,12 +66,21 @@ int main(int argc, char *argv[])
|
||||
break;
|
||||
}
|
||||
#ifdef __GNUC__
|
||||
#ifdef __clang__
|
||||
case 'm':
|
||||
printf("%d\n", __clang_minor__);
|
||||
break;
|
||||
case 'v':
|
||||
printf("%d\n", __clang_major__);
|
||||
break;
|
||||
#else
|
||||
case 'm':
|
||||
printf("%d\n", __GNUC_MINOR__);
|
||||
break;
|
||||
case 'v':
|
||||
printf("%d\n", __GNUC__);
|
||||
break;
|
||||
#endif
|
||||
#elif defined __TINYC__
|
||||
case 'v':
|
||||
puts("0");
|
||||
|
Loading…
Reference in New Issue
Block a user