Merge pull request #83618 from akien-mga/scons-no-exceptions-CXXFLAGS
SCons: Use CXXFLAGS to disable exceptions, it's only for C++
This commit is contained in:
commit
7065e2ea47
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue