aboutsummaryrefslogtreecommitdiff
path: root/src/common/CompilerDefs.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-09-03 12:06:16 +0200
committerShauren <shauren.trinity@gmail.com>2024-09-03 12:06:16 +0200
commite8740fb2e125b308493aeab49ddd7b0cc6a53c97 (patch)
tree5ae57ddbea05f3fee3ea245e862861464a15ef5c /src/common/CompilerDefs.h
parentc722ff3a68ed5e20a765d8055cb464dfaee55b6f (diff)
Core/Misc: CompilerDefs/GitRevision improvements
* Removed INTEL as a separate platform (it does not belong there) * Removed BORLAND from known compilers list (it was never supported) * Simplified TRINITY_PLATFORM_WINDOWS detection (_WIN32 is always defined) * Rename revision_data.h macros that begin with a underscore * Added processor architecture to --version string * Added Linux distribution name to .server debug * Fixed some revision_data.h macros missing/wrong values when regenerated during compilation * Removed manual adding of _WIN64 macro from cmake (it is predefined internally by compiler)
Diffstat (limited to 'src/common/CompilerDefs.h')
-rw-r--r--src/common/CompilerDefs.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/common/CompilerDefs.h b/src/common/CompilerDefs.h
index 05a7b090560..4003fbe77e9 100644
--- a/src/common/CompilerDefs.h
+++ b/src/common/CompilerDefs.h
@@ -21,30 +21,21 @@
#define TRINITY_PLATFORM_WINDOWS 0
#define TRINITY_PLATFORM_UNIX 1
#define TRINITY_PLATFORM_APPLE 2
-#define TRINITY_PLATFORM_INTEL 3
-// must be first (win 64 also define _WIN32)
-#if defined( _WIN64 )
+#if defined( _WIN32 )
# define TRINITY_PLATFORM TRINITY_PLATFORM_WINDOWS
-#elif defined( __WIN32__ ) || defined( WIN32 ) || defined( _WIN32 )
-# define TRINITY_PLATFORM TRINITY_PLATFORM_WINDOWS
-#elif defined( __APPLE_CC__ )
+#elif defined( __APPLE__ )
# define TRINITY_PLATFORM TRINITY_PLATFORM_APPLE
-#elif defined( __INTEL_COMPILER )
-# define TRINITY_PLATFORM TRINITY_PLATFORM_INTEL
#else
# define TRINITY_PLATFORM TRINITY_PLATFORM_UNIX
#endif
#define TRINITY_COMPILER_MICROSOFT 0
#define TRINITY_COMPILER_GNU 1
-#define TRINITY_COMPILER_BORLAND 2
-#define TRINITY_COMPILER_INTEL 3
+#define TRINITY_COMPILER_INTEL 2
#ifdef _MSC_VER
# define TRINITY_COMPILER TRINITY_COMPILER_MICROSOFT
-#elif defined( __BORLANDC__ )
-# define TRINITY_COMPILER TRINITY_COMPILER_BORLAND
#elif defined( __INTEL_COMPILER )
# define TRINITY_COMPILER TRINITY_COMPILER_INTEL
#elif defined( __GNUC__ )