#60 Intel compilers will probably be detected as GNU ones on OSX?

v1.0 (example)
open
nobody
None
5
2014-02-18
2014-02-18
Sylwester Arabas
No

At the very beginning of the blitz/bzconfig.h the GNU compiler for Apple is detected with:

if defined(APPLE)

if defined(GNUC)

/ GNU gcc compiler for newer Mac OS X Darwin /

include <blitz gnu="" bzconfig.h="">

else

/ IBM xlc compiler for Darwin /

include <blitz apple="" bzconfig.h="">

endif

Intel's compilers however do define GNUC macro, hence icc on a Mac would be detected as GCC (not tested). Also, what about non-GNU and non-IBM ones?

HTH,
Sylwester

Discussion