Merge pull request #36788 from nekomatata/windows-permissive-flag

Remove '/permissive-' flag from Windows MSVC build
This commit is contained in:
Rémi Verschelde 2020-03-05 08:12:00 +01:00 committed by GitHub
commit cac3e2faad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -330,7 +330,7 @@ if selected_platform in platform_list:
else:
# MSVC doesn't have clear C standard support, /std only covers C++.
# We apply it to CCFLAGS (both C and C++ code) in case it impacts C features.
env.Prepend(CCFLAGS=['/std:c++17', '/permissive-'])
env.Prepend(CCFLAGS=['/std:c++17'])
# Enforce our minimal compiler version requirements
cc_version = methods.get_compiler_version(env) or [-1, -1]