Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check Windows SDK version to use '/permissive-' flag only when supported #36685

Closed

Conversation

pouleyKetchoupp
Copy link
Contributor

When building on Windows, this change makes sure we don't set '/permissive-' flag with older Windows SDK that don't support it and cause compilation errors in some sdk headers.

Fixes #36671

@@ -573,6 +573,17 @@ def get_compiler_version(env):
else:
return None

def compare_version(ver1, ver2):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are builtin Python tools for that, see distutils.version.

@akien-mga
Copy link
Member

IMO it's better to just remove the flag, we can re-add it with proper checks if we actually need it.
GCC and Clang should already be restrictive enough on CI checks.

@akien-mga akien-mga added this to the 4.0 milestone Mar 4, 2020
@pouleyKetchoupp
Copy link
Contributor Author

Ok, sounds good. I'll make a new PR to remove the flag completely then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation errors on Windows 10 with Visual Studio 2019
3 participants