[x265] [PATCH 1 of 4] common: properly report clang compiled by version

Steve Borho steve at borho.org
Sat Oct 12 23:10:26 CEST 2013


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1381607464 18000
#      Sat Oct 12 14:51:04 2013 -0500
# Node ID 28690748ab1d6d913c2e0bab4d0365e0b6cc6db4
# Parent  aef52403ed5ae19395b03157ddc49efcde234c17
common: properly report clang compiled by version

diff -r aef52403ed5a -r 28690748ab1d source/common/common.h
--- a/source/common/common.h	Sat Oct 12 13:40:55 2013 +0530
+++ b/source/common/common.h	Sat Oct 12 14:51:04 2013 -0500
@@ -33,7 +33,16 @@
 // Platform information
 // ====================================================================================================================
 
-#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
+#if defined(__clang__)
+#define NVM_COMPILEDBY  "[clang %d.%d.%d]", __clang_major__, __clang_minor__, __clang_patchlevel__
+#ifdef __IA64__
+#define NVM_ONARCH    "[on 64-bit] "
+#else
+#define NVM_ONARCH    "[on 32-bit] "
+#endif
+#endif
+
+#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(__clang__)
 #define NVM_COMPILEDBY  "[GCC %d.%d.%d]", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__
 #ifdef __IA64__
 #define NVM_ONARCH    "[on 64-bit] "


More information about the x265-devel mailing list