summaryrefslogtreecommitdiffstats
path: root/mkspecs/common/clang.conf
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-11-14 19:27:46 -0800
committerThiago Macieira <thiago.macieira@intel.com>2015-01-11 03:41:48 +0100
commit0f569f5900ea4cf3af551c90f79b80fc78dce9bf (patch)
tree318d8a66986ce03cde4f5cc1f533fbca6b6a8bda /mkspecs/common/clang.conf
parentd7795559a7b80d3ec0a1eb86d29deaca6074f4ed (diff)
Clean up ltcg.prf with variables, including a new static mode
By using the special "ar" and "ranlib" tools, the symbol table is made visible, so we don't need fat LTO binaries. Since we need to store the new tool names, we may as well clean up ltcg.prf with variable names for the fat mode too. Change-Id: I7e53af0c74a3d069313f38500b72538af1d61128 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'mkspecs/common/clang.conf')
-rw-r--r--mkspecs/common/clang.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/mkspecs/common/clang.conf b/mkspecs/common/clang.conf
index 2c29bb88fb..e188f10200 100644
--- a/mkspecs/common/clang.conf
+++ b/mkspecs/common/clang.conf
@@ -28,3 +28,8 @@ QMAKE_CXXFLAGS_CXX11 = -std=c++11
QMAKE_LFLAGS_CXX11 =
QMAKE_LFLAGS_LTCG = $$QMAKE_CFLAGS_LTCG
+
+# Wrapper tools that understand .o/.a files with LLVM bytecode instead of machine code
+QMAKE_AR_LTCG = llvm-ar cqs
+QMAKE_NM_LTCG = gcc-nm -P
+QMAKE_RANLIB_LTCG = true # No need to run, since llvm-ar has "s"