forked from qt-creator/qt-creator
qbs build: Take differences between clang and "apple clang" into account
In particular, clang with version number 10 is not really clang 10 on macOS. Change-Id: I8be489fa9cffd63c1ea8f13d181686ab1a575ec6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -37,6 +37,7 @@ Product {
|
||||
cpp.cxxFlags: {
|
||||
var flags = [];
|
||||
if (qbs.toolchain.contains("clang")
|
||||
&& !qbs.hostOS.contains("darwin")
|
||||
&& Utilities.versionCompare(cpp.compilerVersion, "10") >= 0) {
|
||||
// Triggers a lot in Qt.
|
||||
flags.push("-Wno-deprecated-copy", "-Wno-constant-logical-operand");
|
||||
|
@@ -15,6 +15,7 @@ DynamicLibrary {
|
||||
cpp.cxxFlags: {
|
||||
var flags = [];
|
||||
if (qbs.toolchain.contains("clang")
|
||||
&& !qbs.hostOS.contains("darwin")
|
||||
&& Utilities.versionCompare(cpp.compilerVersion, "10") >= 0) {
|
||||
// Triggers a lot in Qt.
|
||||
flags.push("-Wno-deprecated-copy", "-Wno-constant-logical-operand");
|
||||
|
Reference in New Issue
Block a user