Skip to content

Commit 3bfcbe7

Browse files
committed
SCons: Use CXXFLAGS to disable exceptions, it's only for C++
Following discussion in godotengine/godot-cpp#1216.
1 parent f8818f8 commit 3bfcbe7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SConstruct

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,9 +722,9 @@ if selected_platform in platform_list:
722722
if env.msvc:
723723
env.Append(CPPDEFINES=[("_HAS_EXCEPTIONS", 0)])
724724
else:
725-
env.Append(CCFLAGS=["-fno-exceptions"])
725+
env.Append(CXXFLAGS=["-fno-exceptions"])
726726
elif env.msvc:
727-
env.Append(CCFLAGS=["/EHsc"])
727+
env.Append(CXXFLAGS=["/EHsc"])
728728

729729
# Configure compiler warnings
730730
if env.msvc: # MSVC

0 commit comments

Comments
 (0)