Skip to content

Commit 9e4ed20

Browse files
authored
Merge pull request #11 from Rust-for-Linux/fix/load-libgccjit
Copy libgccjit.so in the sysroot to fix the issue
2 parents aba59d8 + 885af59 commit 9e4ed20

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ jobs:
128128
129129
echo "MAKE_KRUSTFLAGS=KRUSTFLAGS=-Zcodegen-backend=$(pwd)/rustc_codegen_gcc/target/release/librustc_codegen_gcc.so" >> $GITHUB_ENV
130130
131+
# Since the Makefile uses the sysroot provided by rustup, we need to
132+
# manually copy libgccjit.so in this sysroot directory.
133+
ln -s /usr/lib/libgccjit.so ~/.rustup/toolchains/$rust_version-x86_64-unknown-linux-gnu/lib/
134+
131135
cd rustc_codegen_gcc
132136
echo 'gcc-path = "/usr/lib"' > config.toml
133137
#sed -i '/channel/d' rust-toolchain

0 commit comments

Comments
 (0)