summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-10-20 15:11:01 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-10-20 15:11:01 +0200
commit7065e2ea47b15c49497f877b8fee8b058d08f63e (patch)
treeaeaba7cad5035694985c35042c14b430c34f8efb
parentd99285db6a8fc5ca9994d7a10ef418644b4554fd (diff)
parent3bfcbe7946fc17d7b61a587bc3dcc8e94633e3d3 (diff)
downloadredot-engine-7065e2ea47b15c49497f877b8fee8b058d08f63e.tar.gz
Merge pull request #83618 from akien-mga/scons-no-exceptions-CXXFLAGS
SCons: Use CXXFLAGS to disable exceptions, it's only for C++
-rw-r--r--SConstruct4
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