clang version 10.0.1 identified as gcc in configure ?

Torbjörn Granlund tg at gmplib.org
Thu Aug 20 08:02:44 UTC 2020


The cause for this is that clang claims to be the real thing:

On a FreeBSD box:

shell$ cc -v
FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on
LLVM 8.0.1)
Target: x86_64-unknown-freebsd12.1
Thread model: posix
InstalledDir: /usr/bin
shell$ cc -dM -E - < /dev/null | grep GNU
#define __GNUC_MINOR__ 2
#define __GNUC_PATCHLEVEL__ 1
#define __GNUC_STDC_INLINE__ 1
#define __GNUC__ 4

And on a Mac:

flat$ cc -v
Apple clang version 12.0.0 (clang-1200.0.22.19)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir:
/Users/tege/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
flat$ cc -dM -E - < /dev/null | grep GNU
#define __GNUC_MINOR__ 2
#define __GNUC_PATCHLEVEL__ 1
#define __GNUC_STDC_INLINE__ 1
#define __GNUC__ 4


-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-discuss mailing list