[compiler-rt] 903008d - [test][hwsasan] Invert enable_aliases check

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 11 16:26:45 PDT 2023


Author: Vitaly Buka
Date: 2023-09-11T16:26:34-07:00
New Revision: 903008d56cd4aa6c022a45f8e190235e8a13902c

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

LOG: [test][hwsasan] Invert enable_aliases check

For some reasons enable_aliases is not set when we
LLVM_ENABLE_RUNTIMES=compiler-rt instead of LLVM_ENABLE_PROJECTS.

Added: 
    

Modified: 
    compiler-rt/test/hwasan/lit.cfg.py

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/hwasan/lit.cfg.py b/compiler-rt/test/hwasan/lit.cfg.py
index 71a7f96d652eeb7..594f3294a84ac17 100644
--- a/compiler-rt/test/hwasan/lit.cfg.py
+++ b/compiler-rt/test/hwasan/lit.cfg.py
@@ -13,7 +13,7 @@
 clang_cxxflags = config.cxx_mode_flags + clang_cflags
 clang_hwasan_common_cflags = clang_cflags + ["-fsanitize=hwaddress", "-fuse-ld=lld"]
 
-if config.target_arch == "x86_64" and config.enable_aliases == "1":
+if config.target_arch == "x86_64" and config.enable_aliases != "0":
     clang_hwasan_common_cflags += ["-fsanitize-hwaddress-experimental-aliasing"]
 else:
     config.available_features.add("pointer-tagging")


        


More information about the llvm-commits mailing list