diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2016-11-24 11:46:36 +0100 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2016-11-25 20:31:54 +0000 |
commit | 7f530b028d1bba66ec75b441813e89aacbcababe (patch) | |
tree | ba124bc8f9769bb4cf3862cc2003051e7eda202f | |
parent | 84d3ffa171feb3d31d311e2db8f0965f0d7e9f7d (diff) |
cpp module: Use libc++ for Darwin targets when C++ >= 11 is enabled
The libstdc++ shipped on these platforms does not support C++11.
Change-Id: I147643a2684eb75604289491ed4f32e807f92425
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
-rw-r--r-- | share/qbs/modules/cpp/DarwinGCC.qbs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/DarwinGCC.qbs b/share/qbs/modules/cpp/DarwinGCC.qbs index 4259ee11c..89a89cb44 100644 --- a/share/qbs/modules/cpp/DarwinGCC.qbs +++ b/share/qbs/modules/cpp/DarwinGCC.qbs @@ -46,6 +46,8 @@ UnixGCC { imageFormat: "macho" compilerDefines: ["__GNUC__=4", "__APPLE__"] + cxxStandardLibrary: qbs.toolchain.contains("clang") && cxxLanguageVersion !== "c++98" + ? "libc++" : base loadableModulePrefix: "" loadableModuleSuffix: ".bundle" dynamicLibrarySuffix: ".dylib" |