SCons: Use CXXFLAGS to disable exceptions, it's only for C++
Following discussion in https://github.com/godotengine/godot-cpp/pull/1216.
This commit is contained in:
parent
f8818f85e6
commit
3bfcbe7946
@ -722,9 +722,9 @@ if selected_platform in platform_list:
|
|||||||
if env.msvc:
|
if env.msvc:
|
||||||
env.Append(CPPDEFINES=[("_HAS_EXCEPTIONS", 0)])
|
env.Append(CPPDEFINES=[("_HAS_EXCEPTIONS", 0)])
|
||||||
else:
|
else:
|
||||||
env.Append(CCFLAGS=["-fno-exceptions"])
|
env.Append(CXXFLAGS=["-fno-exceptions"])
|
||||||
elif env.msvc:
|
elif env.msvc:
|
||||||
env.Append(CCFLAGS=["/EHsc"])
|
env.Append(CXXFLAGS=["/EHsc"])
|
||||||
|
|
||||||
# Configure compiler warnings
|
# Configure compiler warnings
|
||||||
if env.msvc: # MSVC
|
if env.msvc: # MSVC
|
||||||
|
Loading…
Reference in New Issue
Block a user