summaryrefslogtreecommitdiffstats
path: root/mkspecs/common/clang.conf
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@nokia.com>2010-10-13 18:33:03 (GMT)
committerTor Arne Vestbø <tor.arne.vestbo@nokia.com>2010-10-20 17:40:11 (GMT)
commit15f52e00e50784d39bd2ffe8a2924aecbc0ce2cc (patch)
tree9a2e7b16d9b1f5fab66e09894d28a162687b35d0 /mkspecs/common/clang.conf
parent1d4bf2d8a4c44f7d91dcde95b54cdd85e4b9b665 (diff)
downloadQt-15f52e00e50784d39bd2ffe8a2924aecbc0ce2cc.zip
Qt-15f52e00e50784d39bd2ffe8a2924aecbc0ce2cc.tar.gz
Qt-15f52e00e50784d39bd2ffe8a2924aecbc0ce2cc.tar.bz2
Add mkspecs for Clang on Linux and Mac OS X
Pass "-platform unsupported/[macx|linux]-clang" and make sure you have a fairly recent trunk-build of Clang (r116737 or above). The platform is currently unsupported and there may be failing test. You have been warned. Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Diffstat (limited to 'mkspecs/common/clang.conf')
-rw-r--r--mkspecs/common/clang.conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/mkspecs/common/clang.conf b/mkspecs/common/clang.conf
new file mode 100644
index 0000000..f8ab0fe
--- /dev/null
+++ b/mkspecs/common/clang.conf
@@ -0,0 +1,14 @@
+#
+# Qmake configuration for Clang on Linux and Mac
+#
+
+QMAKE_CC = clang
+QMAKE_CXX = clang++
+
+CONFIG += clang_pch_style
+QMAKE_PCH_OUTPUT_EXT = .pch
+
+QMAKE_CFLAGS_PRECOMPILE = -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
+QMAKE_CFLAGS_USE_PRECOMPILE = -Xclang -include-pch -Xclang ${QMAKE_PCH_OUTPUT}
+QMAKE_CXXFLAGS_PRECOMPILE = -x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
+QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE