SCons: Ensure CPPDEFINES is properly utilized

This commit is contained in:
Thaddeus Crews 2025-07-14 12:10:21 -05:00
parent d5cb0f948e
commit 61956f2e06
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
9 changed files with 80 additions and 88 deletions

View file

@ -144,7 +144,7 @@ def configure(env: "SConsEnvironment"):
if env["use_ubsan"] or env["use_asan"] or env["use_lsan"] or env["use_tsan"] or env["use_msan"]:
env.extra_suffix += ".san"
env.Append(CCFLAGS=["-DSANITIZERS_ENABLED"])
env.Append(CPPDEFINES=["SANITIZERS_ENABLED"])
if env["use_ubsan"]:
env.Append(