summaryrefslogtreecommitdiffstats
path: root/mkspecs/macx-llvm
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@nokia.com>2010-10-18 11:56:19 (GMT)
committerTor Arne Vestbø <tor.arne.vestbo@nokia.com>2010-10-18 15:43:43 (GMT)
commit0290b2aaff20f6c3f80b29d382e21e5dd39a08eb (patch)
treea9567f86cf9bc6f1665adecea9f10de0dc8a69b1 /mkspecs/macx-llvm
parent8033d331b0e96b52b01f6e918ba61812998c8b85 (diff)
downloadQt-0290b2aaff20f6c3f80b29d382e21e5dd39a08eb.zip
Qt-0290b2aaff20f6c3f80b29d382e21e5dd39a08eb.tar.gz
Qt-0290b2aaff20f6c3f80b29d382e21e5dd39a08eb.tar.bz2
mkspecs: Refactor precompiled-header configuration out of gcc-base(-mac)
Preparation for introducing Clang-style precompiled-header support. Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Diffstat (limited to 'mkspecs/macx-llvm')
-rw-r--r--mkspecs/macx-llvm/qmake.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/mkspecs/macx-llvm/qmake.conf b/mkspecs/macx-llvm/qmake.conf
index 0064fb0..95c2b28 100644
--- a/mkspecs/macx-llvm/qmake.conf
+++ b/mkspecs/macx-llvm/qmake.conf
@@ -17,4 +17,9 @@ include(../common/mac.conf)
include(../common/llvm.conf)
include(../common/gcc-base-mac.conf)
+QMAKE_OBJCFLAGS_PRECOMPILE = -x objective-c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
+QMAKE_OBJCFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
+QMAKE_OBJCXXFLAGS_PRECOMPILE = -x objective-c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
+QMAKE_OBJCXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
+
load(qt_config)