Fix PandaSystem.getCompiler() for clang (it erroneously reported GCC)

This commit is contained in:
rdb 2015-10-05 00:45:55 +02:00
parent c6a1626cd3
commit cb7a0e2520

View File

@ -270,6 +270,11 @@ get_compiler() {
return strm.str();
#elif defined(__clang__)
// Clang has this macro. This case has to go before __GNUC__
// because that is also defined by clang.
return "Clang " __clang_version__;
#elif defined(__GNUC__)
// GCC defines this simple macro.
return "GCC " __VERSION__;