Skip to content

Commit

Permalink
SCons: Use CXXFLAGS to disable exceptions, it's only for C++
Browse files Browse the repository at this point in the history
Following discussion in godotengine/godot-cpp#1216.
  • Loading branch information
akien-mga committed Oct 19, 2023
1 parent f8818f8 commit 3bfcbe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -722,9 +722,9 @@ if selected_platform in platform_list:
if env.msvc:
env.Append(CPPDEFINES=[("_HAS_EXCEPTIONS", 0)])
else:
env.Append(CCFLAGS=["-fno-exceptions"])
env.Append(CXXFLAGS=["-fno-exceptions"])
elif env.msvc:
env.Append(CCFLAGS=["/EHsc"])
env.Append(CXXFLAGS=["/EHsc"])

# Configure compiler warnings
if env.msvc: # MSVC
Expand Down

0 comments on commit 3bfcbe7

Please sign in to comment.