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

[SR-9922] Build settings for C++ exceptions and rtti support #4728

Open
benlangmuir opened this issue Feb 14, 2019 · 0 comments
Open

[SR-9922] Build settings for C++ exceptions and rtti support #4728

benlangmuir opened this issue Feb 14, 2019 · 0 comments

Comments

@benlangmuir
Copy link
Member

Previous ID SR-9922
Radar None
Original Reporter @benlangmuir
Type New Feature
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels New Feature
Assignee None
Priority Medium

md5: fa619e7f3cbb12843f24eae524c96759

Issue Description:

C++ projects such as LLVM turn off exceptions and rtti support to reduce code size and enforce a restricted subset of C++.

-fno-exceptions -fno-rtti

The Swift Package Manager should support disabling C++ exceptions and RTTI on a per-target basis.

We may want to disallow using -fno-rtti without -fno-exceptions, since combining code built with -fno-rtti -fexceptions and code built with -frtti -fexceptions can cause ODR violations for the RTTI generated for exception types.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants