Browse Source

Allow llvm-mingw sanitizers only on x86_32/x86_64

Alvin Wong 1 year ago
parent
commit
25270d5907
1 changed files with 3 additions and 0 deletions
  1. 3 0
      platform/windows/detect.py

+ 3 - 0
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"])