Skip to content

CMake: Make -fno-exceptions private#1880

Merged
dsnopek merged 1 commit into
godotengine:masterfrom
guillaumeriousat:make-noexcept-flag-private
Nov 30, 2025
Merged

CMake: Make -fno-exceptions private#1880
dsnopek merged 1 commit into
godotengine:masterfrom
guillaumeriousat:make-noexcept-flag-private

Conversation

@guillaumeriousat

Copy link
Copy Markdown
Contributor

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

@enetheru enetheru left a comment

Copy link
Copy Markdown
Collaborator

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.

@dsnopek

dsnopek commented Nov 30, 2025

Copy link
Copy Markdown
Collaborator

Thanks!

@dsnopek
dsnopek merged commit ee2a174 into godotengine:master Nov 30, 2025
10 checks passed
@dsnopek

dsnopek commented Nov 30, 2025

Copy link
Copy Markdown
Collaborator

Cherry-picked for 4.4 in PR #1890

@dsnopek

dsnopek commented Nov 30, 2025

Copy link
Copy Markdown
Collaborator

Cherry-picked for 4.5 in PR #1891

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

Labels

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