mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Enable ISO C++ conformance mode for MSVC compiler
This avoids triggering a regression in compiler version 19.24.28314 (VS 2019 16.4.2 / VS 2019 C++ component v14.24)
This commit is contained in:
@@ -207,10 +207,11 @@ defineTest(addLibraryDependency) {
|
||||
}
|
||||
|
||||
################################
|
||||
# Workarounds needed when using MSVC /permissive- flag
|
||||
# ISO C++ conformance mode for MSVC
|
||||
################################
|
||||
|
||||
msvc:contains(QMAKE_CXXFLAGS, /permissive-): QMAKE_CXXFLAGS *= /FIpermissiveworkarounds.h
|
||||
msvc:greaterThan(QMAKE_MSC_VER, 1923): QMAKE_CXXFLAGS *= /permissive-
|
||||
msvc:contains(QMAKE_CXXFLAGS, /permissive-): QMAKE_CXXFLAGS *= /FI$${SourceRoot}\src\permissiveworkarounds.h
|
||||
|
||||
################################
|
||||
# Experimental support for Clang on Windows
|
||||
|
||||
Reference in New Issue
Block a user