diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-19 16:28:07 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-19 16:28:07 +0200 |
| commit | 3bfcbe7946fc17d7b61a587bc3dcc8e94633e3d3 (patch) | |
| tree | 0e46909c9aade7c7c71f0fecbf80b8ccc297d9ac | |
| parent | f8818f85e6c43cdf1277e8ae85eba19ca0a003b0 (diff) | |
| download | redot-engine-3bfcbe7946fc17d7b61a587bc3dcc8e94633e3d3.tar.gz | |
SCons: Use CXXFLAGS to disable exceptions, it's only for C++
Following discussion in https://github.com/godotengine/godot-cpp/pull/1216.
| -rw-r--r-- | SConstruct | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct index b427895520..031f421a63 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 |
