From 25270d590724cae5b8e5a3b935cb92fb19377128 Mon Sep 17 00:00:00 2001 From: Alvin Wong Date: Sun, 28 Jul 2024 17:20:42 +0800 Subject: [PATCH] Allow llvm-mingw sanitizers only on x86_32/x86_64 --- platform/windows/detect.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/windows/detect.py b/platform/windows/detect.py index 259febe46b7..a1341d5ceb2 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -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"])