From 7d114d8d281bdc63f81731104fd52bd2aafe3ced Mon Sep 17 00:00:00 2001 From: Guillaume Riou Date: Wed, 12 Nov 2025 15:17:23 -0500 Subject: [PATCH] make -fno-exceptions private --- cmake/common_compiler_flags.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/common_compiler_flags.cmake b/cmake/common_compiler_flags.cmake index 8a9a41ccb..50bccb9d8 100644 --- a/cmake/common_compiler_flags.cmake +++ b/cmake/common_compiler_flags.cmake @@ -66,9 +66,6 @@ function(common_compiler_flags) # The public flag tells CMake that the following options are transient, # and will propagate to consumers. PUBLIC - # Disable exception handling. Godot doesn't use exceptions anywhere, and this - # saves around 20% of binary size and very significant build time. - $<${DISABLE_EXCEPTIONS}:$<${NOT_MSVC}:-fno-exceptions>> # Enabling Debug Symbols $<${DEBUG_SYMBOLS}: @@ -95,6 +92,9 @@ function(common_compiler_flags) # Warnings below, these do not need to propagate to consumers. PRIVATE + # Disable exception handling. Godot doesn't use exceptions anywhere, and this + # saves around 20% of binary size and very significant build time. + $<${DISABLE_EXCEPTIONS}:$<${NOT_MSVC}:-fno-exceptions>> $<${IS_MSVC}: /W4 # Warning level 4 (informational) warnings that aren't off by default.