blitzpp / blitz

Blitz++ Multi-Dimensional Array Library for C++
https://github.com/blitzpp/blitz/wiki
Other
405 stars 84 forks source link

Intel compilers will probably be detected as GNU on OSX #70

Open slayoo opened 5 years ago

slayoo commented 5 years ago

Migrated from: https://sourceforge.net/p/blitz/bugs/60/

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?