summaryrefslogtreecommitdiffstats
path: root/mkspecs/common/g++.conf
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/common/g++.conf
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/common/g++.conf')
-rw-r--r--mkspecs/common/g++.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/mkspecs/common/g++.conf b/mkspecs/common/g++.conf
index cb82180..d73b38f 100644
--- a/mkspecs/common/g++.conf
+++ b/mkspecs/common/g++.conf
@@ -16,3 +16,8 @@ QMAKE_LINK_C = $$QMAKE_CC
QMAKE_LINK_C_SHLIB = $$QMAKE_CC
QMAKE_PCH_OUTPUT_EXT = .gch
+
+QMAKE_CFLAGS_PRECOMPILE = -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
+QMAKE_CFLAGS_USE_PRECOMPILE = -include ${QMAKE_PCH_OUTPUT_BASE}
+QMAKE_CXXFLAGS_PRECOMPILE = -x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
+QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE