[compiler-rt] 22aa493 - [test][sanitizer] Add feature for "any" GLIBC
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri May 5 17:13:02 PDT 2023
Author: Vitaly Buka
Date: 2023-05-05T17:12:17-07:00
New Revision: 22aa493ad2cae27b1ee00da1ec9caf9413732005
URL: https://github.com/llvm/llvm-project/commit/22aa493ad2cae27b1ee00da1ec9caf9413732005
DIFF: https://github.com/llvm/llvm-project/commit/22aa493ad2cae27b1ee00da1ec9caf9413732005.diff
LOG: [test][sanitizer] Add feature for "any" GLIBC
"any" is actualy any resonably recent GLIBC.
Added:
Modified:
compiler-rt/test/lit.common.cfg.py
Removed:
################################################################################
diff --git a/compiler-rt/test/lit.common.cfg.py b/compiler-rt/test/lit.common.cfg.py
index 02a1166644bd..0608b08f09de 100644
--- a/compiler-rt/test/lit.common.cfg.py
+++ b/compiler-rt/test/lit.common.cfg.py
@@ -518,9 +518,13 @@ def get_macos_aligned_version(macos_vers):
if not config.android and len(ver_lines) and ver_lines[0].startswith(b"ldd "):
from distutils.version import LooseVersion
ver = LooseVersion(ver_lines[0].split()[-1].decode())
- for required in ["2.27", "2.30", "2.34", "2.37"]:
+ any_glibc = False
+ for required in ["2.19", "2.27", "2.30", "2.34", "2.37"]:
if ver >= LooseVersion(required):
config.available_features.add("glibc-" + required)
+ any_glibc = True
+ if any_glibc:
+ config.available_features.add("glibc")
sancovcc_path = os.path.join(config.llvm_tools_dir, "sancov")
if os.path.exists(sancovcc_path):
More information about the llvm-commits
mailing list