Allow llvm-mingw sanitizers only on x86_32/x86_64
This commit is contained in:
parent
0cda0b935d
commit
25270d5907
1 changed files with 3 additions and 0 deletions
|
@ -746,6 +746,9 @@ def configure_mingw(env: "SConsEnvironment"):
|
|||
if not env["use_llvm"]:
|
||||
print("GCC does not support sanitizers on Windows.")
|
||||
sys.exit(255)
|
||||
if env["arch"] not in ["x86_32", "x86_64"]:
|
||||
print("Sanitizers are only supported for x86_32 and x86_64.")
|
||||
sys.exit(255)
|
||||
|
||||
env.extra_suffix += ".san"
|
||||
env.AppendUnique(CPPDEFINES=["SANITIZERS_ENABLED"])
|
||||
|
|
Loading…
Reference in a new issue