File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ _compatible_libstdcxx_ng_versions = [
25
25
(v " 3.4.20" , (" >=4.9" , " <5.1" )),
26
26
(v " 3.4.19" , (" >=4.8.3" , " <4.9" )),
27
27
]
28
-
29
28
libgcc = if Sys. islinux ()
30
29
# see discourse.julialang.org/t/glibcxx-version-not-found/82209/8
31
30
# julia 1.8.3 is built with libstdc++.so.6.0.29, so we must restrict to this version (gcc 11.3.0, not gcc 12.2.0)
32
- max_minor_version = maximum (t -> Int (t[1 ]. patch), _compatible_libstdcxx_ng_versions)
33
- _, hi = Dict (_compatible_libstdcxx_ng_versions)[Base. BinaryPlatforms. detect_libstdcxx_version (max_minor_version)]
34
- specs = " >=3.4,$hi " # NOTE: ignore lower bound for compatibility
31
+ versions = Dict (_compatible_libstdcxx_ng_versions)
32
+ lo, hi = extrema (keys (versions))
33
+ _, ub = versions[Base. BinaryPlatforms. detect_libstdcxx_version (Int (hi. patch))]
34
+ specs = " >=$(VersionNumber (lo. major, lo. minor)) ,$ub "
35
35
(" libgcc-ng$specs " , " libstdcxx-ng$specs " )
36
36
else
37
37
()
You can’t perform that action at this time.
0 commit comments