浏览代码

SCons: Use CXXFLAGS to disable exceptions, it's only for C++

Following discussion in https://github.com/godotengine/godot-cpp/pull/1216.
Rémi Verschelde 1 年之前
父节点
当前提交
3bfcbe7946
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      SConstruct

+ 2 - 2
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