forked from qt-creator/qt-creator
Botan: Fix build with MSVC from Visual Studio 2017 15.8
Task-number: QTCREATORBUG-20955 Change-Id: I7413e73137248bb880fad9b369e05e09101987fd Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -28,7 +28,8 @@ mingw {
|
||||
OTHER_FLAGS += --without-stack-protector
|
||||
}
|
||||
BOTAN_CXX_FLAGS =
|
||||
msvc: BOTAN_CXX_FLAGS += /wd4127 /wd4244 /wd4250 /wd4267 /wd4334 /wd4702 /wd4996
|
||||
msvc: BOTAN_CXX_FLAGS += /wd4127 /wd4244 /wd4250 /wd4267 /wd4334 /wd4702 /wd4996 \
|
||||
/D_ENABLE_EXTENDED_ALIGNED_STORAGE
|
||||
else: BOTAN_CXX_FLAGS += -Wno-unused-parameter
|
||||
macos: BOTAN_CXX_FLAGS += -mmacosx-version-min=$$QMAKE_MACOSX_DEPLOYMENT_TARGET -isysroot $$shell_quote($$QMAKE_MAC_SDK_PATH)
|
||||
unix: BOTAN_CXX_FLAGS += -fPIC
|
||||
|
@@ -44,7 +44,7 @@ Product {
|
||||
var cxxFlags = [];
|
||||
if (product.qbs.toolchain.contains("msvc")) {
|
||||
cxxFlags.push("/wd4127", "/wd4244", "/wd4250", "/wd4267", "/wd4334", "/wd4702",
|
||||
"/wd4996");
|
||||
"/wd4996", "/D_ENABLE_EXTENDED_ALIGNED_STORAGE");
|
||||
}
|
||||
else if (product.qbs.toolchain.contains("gcc"))
|
||||
cxxFlags.push("-Wno-unused-parameter");
|
||||
|
Reference in New Issue
Block a user