Skip to content

Commit ee2a174

Browse files
authored
Merge pull request #1880 from guillaumeriousat/make-noexcept-flag-private
CMake: Make -fno-exceptions private
2 parents 8d1a1c8 + 7d114d8 commit ee2a174

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmake/common_compiler_flags.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ function(common_compiler_flags)
6666
# The public flag tells CMake that the following options are transient,
6767
# and will propagate to consumers.
6868
PUBLIC
69-
# Disable exception handling. Godot doesn't use exceptions anywhere, and this
70-
# saves around 20% of binary size and very significant build time.
71-
$<${DISABLE_EXCEPTIONS}:$<${NOT_MSVC}:-fno-exceptions>>
7269

7370
# Enabling Debug Symbols
7471
$<${DEBUG_SYMBOLS}:
@@ -95,6 +92,9 @@ function(common_compiler_flags)
9592

9693
# Warnings below, these do not need to propagate to consumers.
9794
PRIVATE
95+
# Disable exception handling. Godot doesn't use exceptions anywhere, and this
96+
# saves around 20% of binary size and very significant build time.
97+
$<${DISABLE_EXCEPTIONS}:$<${NOT_MSVC}:-fno-exceptions>>
9898
$<${IS_MSVC}:
9999
/W4 # Warning level 4 (informational) warnings that aren't off by default.
100100

0 commit comments

Comments
 (0)