浏览代码

Allow llvm-mingw sanitizers only on x86_32/x86_64

Alvin Wong 1 年之前
父节点
当前提交
25270d5907
共有 1 个文件被更改,包括 3 次插入0 次删除
  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"])