Revert "[compiler-rt][test] Use packaging.version.Version to compare glibc versions" (#158230)

Reverts llvm/llvm-project#142596

Got reports that some tests previously skipped are running again and
failing.
This commit is contained in:
David Spickett
2025-09-12 08:41:00 +01:00
committed by GitHub
parent a7521a81c4
commit d7b7b9cd6d

View File

@@ -713,9 +713,9 @@ if config.target_os == "Linux":
if config.android:
return
from packaging.version import Version
from distutils.version import LooseVersion
ver = Version(ver_string)
ver = LooseVersion(ver_string)
any_glibc = False
for required in [
"2.19",
@@ -727,7 +727,7 @@ if config.target_os == "Linux":
"2.38",
"2.40",
]:
if ver >= Version(required):
if ver >= LooseVersion(required):
config.available_features.add("glibc-" + required)
any_glibc = True
if any_glibc: