mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
Fix PandaSystem.getCompiler() for clang (it erroneously reported GCC)
This commit is contained in:
parent
c6a1626cd3
commit
cb7a0e2520
@ -270,6 +270,11 @@ get_compiler() {
|
|||||||
|
|
||||||
return strm.str();
|
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__)
|
#elif defined(__GNUC__)
|
||||||
// GCC defines this simple macro.
|
// GCC defines this simple macro.
|
||||||
return "GCC " __VERSION__;
|
return "GCC " __VERSION__;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user