summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@qt.io>2016-08-18 12:01:11 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2016-08-18 13:48:52 +0000
commit3bf0c14a2626d76b5b2d557bba280c98f0a71b95 (patch)
tree19e4d2616ce0d70317a2abc29fe924371b97a226
parent3c6220c4f8893b58af5e68ffaeff5951efe1f331 (diff)
Darwin: Fix clang LTO builds
llvm-ar is not shipped as part of Xcode. Use libtool instead, just like Xcode does. Change-Id: Ic9c5e16c826c0d42979556f78d2cf6415542ef93 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
-rw-r--r--mkspecs/common/clang-mac.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/mkspecs/common/clang-mac.conf b/mkspecs/common/clang-mac.conf
index c616e20b6e..274fd73d00 100644
--- a/mkspecs/common/clang-mac.conf
+++ b/mkspecs/common/clang-mac.conf
@@ -8,3 +8,4 @@ QMAKE_XCODE_GCC_VERSION = com.apple.compilers.llvm.clang.1_0
QMAKE_CXXFLAGS += -stdlib=libc++
QMAKE_LFLAGS += -stdlib=libc++
+QMAKE_AR_LTCG = libtool -static -o