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:
Rémi Verschelde 2023-10-20 15:11:01 +02:00
commit 7065e2ea47
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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