Skip to content

Commit

Permalink
Merge pull request #83618 from akien-mga/scons-no-exceptions-CXXFLAGS
Browse files Browse the repository at this point in the history
SCons: Use CXXFLAGS to disable exceptions, it's only for C++
  • Loading branch information
akien-mga committed Oct 20, 2023
2 parents d99285d + 3bfcbe7 commit 7065e2e
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 7065e2e

Please sign in to comment.