Skip to content

Commit 3097237

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ 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+
dir1=~/.rustup/toolchains/$rust_version-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/lib/x86_64-linux-gnu/
137+
dir2=~/.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 $dir1 $dir2
139+
ln -s /usr/lib/libgccjit.so $dir1/libgccjit.so
140+
ln -s /usr/lib/libgccjit.so $dir2/libgccjit.so
137141
138142
cd rustc_codegen_gcc
139143
echo 'gcc-path = "/usr/lib"' > config.toml

0 commit comments

Comments
 (0)