[compiler-rt] e37fce3 - [test][HWASAN] Don't run common tests without lld

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue May 2 12:27:44 PDT 2023


Author: Vitaly Buka
Date: 2023-05-02T12:27:28-07:00
New Revision: e37fce3d340b4d54505345e5a96bd06255be2be4

URL: https://github.com/llvm/llvm-project/commit/e37fce3d340b4d54505345e5a96bd06255be2be4
DIFF: https://github.com/llvm/llvm-project/commit/e37fce3d340b4d54505345e5a96bd06255be2be4.diff

LOG: [test][HWASAN] Don't run common tests without lld

Follow up to D149234 for bots without lld.

Added: 
    

Modified: 
    compiler-rt/test/sanitizer_common/lit.common.cfg.py

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/sanitizer_common/lit.common.cfg.py b/compiler-rt/test/sanitizer_common/lit.common.cfg.py
index f6f74d8ab7f95..a35884cab91da 100644
--- a/compiler-rt/test/sanitizer_common/lit.common.cfg.py
+++ b/compiler-rt/test/sanitizer_common/lit.common.cfg.py
@@ -16,6 +16,8 @@
     tool_cflags += ["-fsanitize-hwaddress-experimental-aliasing"]
     config.available_features.add("hwasan-aliasing")
   tool_options = "HWASAN_OPTIONS"
+  if not config.has_lld:
+    config.unsupported = True
 elif config.tool_name == "tsan":
   tool_cflags = ["-fsanitize=thread"]
   tool_options = "TSAN_OPTIONS"


        


More information about the llvm-commits mailing list