Skip to content

Commit a28597c

Browse files
authored
update libstdcxx
1 parent 4f61459 commit a28597c

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

docs/ci_build.sh

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,18 @@ $julia -e '
5757
using Conda; env, rc = Conda.ROOTENV, Conda.conda_rc(Conda.ROOTENV)
5858
Conda.runconda(`config --set auto_update_conda False --file $rc --force`, env)
5959
Pkg.add("PyCall"); Pkg.build("PyCall"; verbose=true)
60-
# see discourse.julialang.org/t/glibcxx-version-not-found/82209/8
61-
# 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-
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-
Conda.add("libgcc-ng<=$gcc_ver")
69-
Conda.add("libstdcxx-ng<=$gcc_ver")
60+
if Sys.islinux()
61+
# see discourse.julialang.org/t/glibcxx-version-not-found/82209/8
62+
# 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)
63+
libstdcxx_ver = Base.BinaryPlatforms.detect_libstdcxx_version()
64+
gcc_major = Dict(
65+
v"3.4.29" => 11,
66+
v"3.4.30" => 12,
67+
# ... keep this up-to-date with gcc 13
68+
)[libstdcxx_ver]
69+
Conda.add("libgcc-ng=$gcc_major")
70+
Conda.add("libstdcxx-ng=$gcc_major")
71+
end
7072
Conda.add("matplotlib")
7173
Conda.list()
7274
'

0 commit comments

Comments
 (0)