Skip to content

build: fix clang-cl exception flags #360

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

Merged
merged 1 commit into from
Jun 14, 2018
Merged

build: fix clang-cl exception flags #360

merged 1 commit into from
Jun 14, 2018

Conversation

adierking
Copy link
Contributor

When building with clang-cl, we currently pass the /EHsc- flag in an attempt to disable exceptions, but this is equivalent to /EHs which still enables C++ exceptions and trips the #error in block.cpp. clang-cl actually disables exceptions by default, so we don't need to pass anything.

See https://msdn.microsoft.com/en-us/library/1deeycx5.aspx.

@adierking
Copy link
Contributor Author

cc @compnerd

@compnerd
Copy link
Member

CC @MadCoder

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

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

LGTM; I think that we can handle other compilers like Intel if/when we need.

@compnerd
Copy link
Member

@swift-ci please test

@MadCoder MadCoder merged commit 44f67b2 into swiftlang:master Jun 14, 2018
@adierking adierking deleted the cl branch December 2, 2018 00:33
ktopley-apple pushed a commit that referenced this pull request Dec 6, 2018
build: fix clang-cl exception flags
Signed-off-by: Kim Topley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants