Skip to content

Commit cd1e2bd

Browse files
committed
Fix location of libgccjit.so in the sysroot
1 parent e53f960 commit cd1e2bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ jobs:
133133
134134
# Since the Makefile uses the sysroot provided by rustup, we need to
135135
# manually copy libgccjit.so in this sysroot directory.
136-
ln -s /usr/lib/libgccjit.so ~/.rustup/toolchains/$rust_version-x86_64-unknown-linux-gnu/lib/
136+
ls -R ~/.rustup/toolchains/$rust_version-x86_64-unknown-linux-gnu/lib
137+
dir=~/.rustup/toolchains/$rust_version-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/lib/x86_64-unknown-linux-gnu/
138+
mkdir -p $dir
139+
ln -s /usr/lib/libgccjit.so $dir/libgccjit.so
137140
138141
cd rustc_codegen_gcc
139142
echo 'gcc-path = "/usr/lib"' > config.toml

0 commit comments

Comments
 (0)