Skip to content

build: enable ABI breaking std::atomic changes on MSVC #7776

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
Feb 27, 2017

Conversation

compnerd
Copy link
Member

The std::atomic implementation in MSVC broke ABI compatibility across a
minor update (VS2015U2). Permit the ABI breaking change for the use in
the runtime.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

The std::atomic implementation in MSVC broke ABI compatibility across a
minor update (VS2015U2).  Permit the ABI breaking change for the use in
the runtime.
@compnerd
Copy link
Member Author

@swift-ci please test and merge

@hughbe
Copy link
Contributor

hughbe commented Feb 27, 2017

Did the old behaviour this affect the Windows build, or is it just a defensive check?

@compnerd
Copy link
Member Author

Yes, the old alignment behaviour is a problem for the build.

@hughbe
Copy link
Contributor

hughbe commented Feb 27, 2017

Interesting, how would the problem manifest itself?

@compnerd
Copy link
Member Author

It would result in a build failure if you were using the right version of the headers. However, if you built against different versions of the SDK, you would get random crashes.

@compnerd
Copy link
Member Author

@swift-ci please test Linux platform

@compnerd compnerd merged commit 122d101 into swiftlang:master Feb 27, 2017
@compnerd compnerd deleted the atomic-abi branch February 27, 2017 21:39
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.

2 participants