diff --git a/SConstruct b/SConstruct index b4278955204..031f421a63b 100644 --- a/SConstruct +++ b/SConstruct @@ -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