summaryrefslogtreecommitdiffstats
path: root/mkspecs/macx-clang-libc++/qmake.conf
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2012-06-13 13:37:14 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-20 15:45:07 +0200
commit1618ef236bc632e3369289ceb672c4a05c48ed35 (patch)
tree7832c7b2f3b54b39ab16172e3a1af96371f21233 /mkspecs/macx-clang-libc++/qmake.conf
parent5f9d3867275787e5f9284d78503c0e0d60c2a3b5 (diff)
mkspecs: Add macx-clang-libc++ and macx-clang-libc++-32
Use these mkspecs to switch to the new libc++ C++ runtime library, which in turn makes it possible to enable C++11 support with clang. Change-Id: If92908592f8bee4829a1bad747fe396f527d26c7 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'mkspecs/macx-clang-libc++/qmake.conf')
-rw-r--r--mkspecs/macx-clang-libc++/qmake.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/mkspecs/macx-clang-libc++/qmake.conf b/mkspecs/macx-clang-libc++/qmake.conf
new file mode 100644
index 0000000000..aeb0e3bac1
--- /dev/null
+++ b/mkspecs/macx-clang-libc++/qmake.conf
@@ -0,0 +1,21 @@
+#
+# qmake configuration for Clang on OS X
+#
+
+MAKEFILE_GENERATOR = UNIX
+TARGET_PLATFORM = macx
+TEMPLATE = app
+CONFIG += qt warn_on release app_bundle incremental global_init_link_order lib_version_first plugin_no_soname link_prl
+QT += core gui
+QMAKE_INCREMENTAL_STYLE = sublib
+
+include(../common/mac.conf)
+include(../common/gcc-base-macx.conf)
+include(../common/clang.conf)
+include(../common/clang-mac.conf)
+
+QMAKE_OBJECTIVE_CFLAGS += -stdlib=libc++
+QMAKE_CXXFLAGS += -stdlib=libc++
+QMAKE_LFLAGS += -stdlib=libc++
+
+load(qt_config)