You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
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.The text was updated successfully, but these errors were encountered: