mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user