Skip to content

Conversation

@lhames
Copy link
Contributor

@lhames lhames commented Dec 13, 2025

Clients should be able to build the ORC runtime with or without exceptions/RTTI, and this choice should be able to be made independently of the corresponding settings for LLVM (e.g. it should be fine to build LLVM with exceptions/RTTI disabled, and orc-rt with them enabled).

The orc-rt-c/config.h header will provide C defines that can be used by both the ORC runtime and API clients to determine the value of the options.

Future patches should build on this work to provide APIs that enable some interoperability between the ORC runtime's error return mechanism (Error/Expected) and C++ exceptions.

Clients should be able to build the ORC runtime with or without
exceptions/RTTI, and this choice should be able to be made independently of
the corresponding settings for LLVM (e.g. it should be fine to build LLVM
with exceptions/RTTI disabled, and orc-rt with them enabled).

The orc-rt-c/config.h header will provide C defines that can be used by both
the ORC runtime and API clients to determine the value of the options.

Future patches should build on this work to provide APIs that enable some
interoperability between the ORC runtime's error return mechanism
(Error/Expected) and C++ exceptions.
@lhames lhames merged commit 7ccf968 into llvm:main Dec 13, 2025
11 checks passed
@lhames lhames deleted the orc-rt-eh-rtti-config branch December 13, 2025 06:08
anonymouspc pushed a commit to anonymouspc/llvm that referenced this pull request Dec 15, 2025
…lvm#172129)

Clients should be able to build the ORC runtime with or without
exceptions/RTTI, and this choice should be able to be made independently
of the corresponding settings for LLVM (e.g. it should be fine to build
LLVM with exceptions/RTTI disabled, and orc-rt with them enabled).

The orc-rt-c/config.h header will provide C defines that can be used by
both the ORC runtime and API clients to determine the value of the
options.

Future patches should build on this work to provide APIs that enable
some interoperability between the ORC runtime's error return mechanism
(Error/Expected) and C++ exceptions.
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.

1 participant