clang version 10.0.1 identified as gcc in configure ?

Vincent Lefevre vincent at vinc17.net
Thu Aug 20 11:37:49 UTC 2020


On 2020-08-20 11:30:49 +0200, Paul Zimmermann wrote:
> > > 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
> > 
> > Fascinating! I never would have guessed :
> 
> note that the same happens with Intel cc:
[...]

But only under Linux, not under MS Windows.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


More information about the gmp-discuss mailing list