Skip to content

Platform: alias math constants on Windows #30940

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
Apr 10, 2020

Conversation

compnerd
Copy link
Member

The non-C/C++ standard defined math constants require
-Xcc -D_USE_MATH_DEFINES when using the ucrt module. Instead,
provide them through the wrapper MSVCRT module as aliases so that the
user does not need to be aware of this in practice.

Repairs the Windows build of _Differentiation.

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

Resolves SR-NNNN.

The non-C/C++ standard defined math constants require
`-Xcc -D_USE_MATH_DEFINES` when using the `ucrt` module.  Instead,
provide them through the wrapper `MSVCRT` module as aliases so that the
user does not need to be aware of this in practice.

Repairs the Windows build of `_Differentiation`.
@compnerd
Copy link
Member Author

CC: @ematejska @dan-zheng @marcrasi

@compnerd
Copy link
Member Author

@swift-ci please test Windows platform

@compnerd
Copy link
Member Author

@swift-ci please test macOS platform

@compnerd
Copy link
Member Author

Please test with following PRs:
swiftlang/llvm-project#1057

@swift-ci please test Linux platform

@compnerd compnerd merged commit 2908546 into swiftlang:master Apr 10, 2020
@compnerd compnerd deleted the magic-numbers-are-good branch April 10, 2020 17:31
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