Skip to content

Conversation

@llvmbot
Copy link
Member

@llvmbot llvmbot commented Jan 16, 2026

Backport 9bbea75

Requested by: @nikic

@llvmbot
Copy link
Member Author

llvmbot commented Jan 16, 2026

@aengelke What do you think about merging this PR to the release branch?

@llvmbot llvmbot added the cmake Build system in general and CMake in particular label Jan 16, 2026
@llvmbot llvmbot requested a review from aengelke January 16, 2026 09:20
@github-project-automation github-project-automation bot moved this from Needs Triage to Needs Merge in LLVM Release Status Jan 16, 2026
llvm#173869 accidentally dropped
rtti and eh flags from `llvm-config --cxxflags`. Then
llvm#174084 restored the rtti
flags. The eh flags were not included with the rationale that they are
not ABI relevant.

This PR restores the eh flags as well. While they are not strictly
necessary, I believe that code that directly interfaces with LLVM almost
certainly does not want to build with exceptions if LLVM is not built
with exceptions. Building in the peculiar `-fexceptions -fno-rtti`
configuration is rarely useful and likely not intended.

On MacOS, this is also relevant because it's not possible to use C++17
headers without `-fno-exceptions` when using older deployment targets.
In that configuration, `-fno-exceptions` is required to interact with
LLVM.

(cherry picked from commit 9bbea75)
@c-rhodes c-rhodes merged commit 2b6bdfc into llvm:release/22.x Jan 19, 2026
1 check was pending
@github-project-automation github-project-automation bot moved this from Needs Merge to Done in LLVM Release Status Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmake Build system in general and CMake in particular

Projects

Development

Successfully merging this pull request may close these issues.

4 participants