Skip to content

Commit f79ac66

Browse files
authored
enhance libstdcxx detection
1 parent 42abb5f commit f79ac66

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docs/ci_build.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,14 @@ $julia -e '
5959
Pkg.add("PyCall"); Pkg.build("PyCall"; verbose=true)
6060
# see discourse.julialang.org/t/glibcxx-version-not-found/82209/8
6161
# 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)
62-
ver = 11
63-
CondaPkg.add("libgcc-ng<=$ver")
64-
CondaPkg.add("libstdcxx-ng<=$ver")
62+
libstdcxx_ver = Base.BinaryPlatforms.detect_libstdcxx_version()
63+
gcc_ver = Dict(
64+
v"3.4.29" => 11,
65+
v"3.4.30" => 12,
66+
# ... keep this up-to-date with gcc 13
67+
)[libstdcxx_ver]
68+
CondaPkg.add("libgcc-ng<=$gcc_ver")
69+
CondaPkg.add("libstdcxx-ng<=$gcc_ver")
6570
Conda.add("matplotlib")
6671
Conda.list()
6772
'

0 commit comments

Comments
 (0)