qmake: Make it possible to set CONFIG += c11 with MSVC 19.28
The compiler that comes with Visual Studio 16.8 added support for setting the C11 standard with the /std:c11 flag. Add the respective version check in msvc-version.conf and set MSVC_VER and QMAKE_CFLAGS_C11 accordingly. Pick-to: 6.2 5.15 Task-number: QTBUG-89296 Change-Id: I29b54ee073a765918f5aa4ebb081b97c5cf471d7 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
b073de274d
commit
8914f80b27
@ -117,4 +117,10 @@ greaterThan(QMAKE_MSC_VER, 1919) {
|
||||
QMAKE_CXXFLAGS += -Zc:externConstexpr
|
||||
}
|
||||
|
||||
greaterThan(QMAKE_MSC_VER, 1927) {
|
||||
# Visual Studio 2019 (16.8 or 16.9) / Visual C++ 19.28 and up
|
||||
MSVC_VER = 16.8
|
||||
QMAKE_CFLAGS_C11 = /std:c11
|
||||
}
|
||||
|
||||
!isEmpty(COMPAT_MKSPEC):!$$COMPAT_MKSPEC: CONFIG += $$COMPAT_MKSPEC
|
||||
|
Loading…
Reference in New Issue
Block a user