Skip to content

Conversation

@guillaumeriousat
Copy link

This enables building a GDExtension with a third-party library that uses exceptions using CMake. Otherwise the -fno-exceptions` flag seems to extend to everything.

Some context: I'm trying to make a GDExtension that integrates the Orbecc SDK in Godot. This SDK is open source and uses exceptions. I had to make this change to successfully build it along with godot-cpp using CMake.

I am by no means good at CMake so tell me if I'm missing something obvious.

Thanks for all your work !

@guillaumeriousat guillaumeriousat requested a review from a team as a code owner November 12, 2025 20:22
@Ivorforce Ivorforce requested a review from enetheru November 12, 2025 20:27
@Ivorforce Ivorforce added enhancement This is an enhancement on the current functionality cmake labels Nov 12, 2025
Copy link
Collaborator

@enetheru enetheru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, thank you. I should have made all flags private by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherrypick:4.4 cherrypick:4.5 cmake enhancement This is an enhancement on the current functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants