Fix Qbs build on Windows

Change-Id: I0d03a73731eb02852d34626ef243597214597ee8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Christian Stenger
2022-08-17 15:35:06 +02:00
parent cb24da01b3
commit 26e47cb6ce

View File

@@ -95,6 +95,8 @@ Module {
"QT_USE_QSTRINGBUILDER",
].concat(testsEnabled ? ["WITH_TESTS"] : [])
.concat(qbs.toolchain.contains("msvc") ? ["_CRT_SECURE_NO_WARNINGS"] : [])
.concat((qbs.toolchain.contains("msvc") && Utilities.versionCompare(qbs.version, "1.23.2") < 0)
? ["_ENABLE_EXTENDED_ALIGNED_STORAGE"] : [])
Properties {
condition: cpp.present && qbs.toolchain.contains("msvc") && product.Qt