Skip to content

build: tweak for portability with exceptions #856

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
Dec 12, 2024

Conversation

compnerd
Copy link
Member

Teach the build system how to spell -fno-exceptions in a foreign grammar. This allows building with clang-cl without a warning for the invalid argument.

@compnerd
Copy link
Member Author

@swift-ci please test

@grynspan grynspan added bug 🪲 Something isn't working windows 🪟 Windows support build 🧱 Affects the project's build configuration or process labels Dec 12, 2024
@grynspan grynspan added this to the Swift 6.x milestone Dec 12, 2024
Teach the build system how to spell `-fno-exceptions` in a foreign
grammar. This allows building with `clang-cl` without a warning for the
invalid argument.

The spelling is documented at
https://learn.microsoft.com/en-us/cpp/build/reference/eh-exception-handling-model?view=msvc-170
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd merged commit 228f0e6 into swiftlang:main Dec 12, 2024
3 checks passed
@compnerd compnerd deleted the foreign-spelling branch December 12, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working build 🧱 Affects the project's build configuration or process windows 🪟 Windows support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants