forked from qt-creator/qt-creator
qbs build: Suppress some warnings
Like in the qmake build. Change-Id: I7dc4a42bf3e4394a4fb6a579646d806f80fa3e96 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -31,6 +31,10 @@ Product {
|
||||
condition: qbs.toolchain.contains("gcc") && !qbs.toolchain.contains("clang")
|
||||
cpp.cxxFlags: base.concat(["-Wno-noexcept-type"])
|
||||
}
|
||||
Properties {
|
||||
condition: qbs.toolchain.contains("msvc")
|
||||
cpp.cxxFlags: base.concat(["/w44996"])
|
||||
}
|
||||
cpp.cxxLanguageVersion: "c++14"
|
||||
cpp.defines: qtc.generalDefines
|
||||
cpp.minimumWindowsVersion: qbs.architecture === "x86" ? "5.1" : "5.2"
|
||||
|
@@ -85,6 +85,7 @@ Module {
|
||||
"QT_USE_FAST_OPERATOR_PLUS",
|
||||
"QT_USE_FAST_CONCATENATION",
|
||||
].concat(testsEnabled ? ["WITH_TESTS"] : [])
|
||||
.concat(qbs.toolchain.contains("msvc") ? ["_CRT_SECURE_NO_WARNINGS"] : [])
|
||||
|
||||
Rule {
|
||||
condition: make_dev_package
|
||||
|
Reference in New Issue
Block a user