Skip to content

Commit b13faf3

Browse files
committed
Copy libgccjit.so in the sysroot to fix the issue
1 parent aba59d8 commit b13faf3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,21 @@ jobs:
128128
129129
echo "MAKE_KRUSTFLAGS=KRUSTFLAGS=-Zcodegen-backend=$(pwd)/rustc_codegen_gcc/target/release/librustc_codegen_gcc.so" >> $GITHUB_ENV
130130
131+
echo $rust_version
132+
# Since the Makefile uses the sysroot provided by rustup, we need to
133+
# manually copy libgccjit.so in this sysroot directory.
134+
ln -s /usr/lib/libgccjit.so ~/.rustup/toolchains/$rust_version-x86_64-unknown-linux-gnu/lib/
135+
ls ~/.rustup/toolchains/$rust_version-x86_64-unknown-linux-gnu/lib/
136+
131137
cd rustc_codegen_gcc
132138
echo 'gcc-path = "/usr/lib"' > config.toml
133139
#sed -i '/channel/d' rust-toolchain
134140
export RUSTC_BOOTSTRAP=1
135141
./y.sh prepare --only-libcore
136142
./y.sh build --sysroot --release
143+
ls /home/runner/.rustup/toolchains/nightly-2025-11-24-x86_64-unknown-linux-gnu/lib/
144+
echo **********
145+
ls -R ..
137146
138147
# Setup: `bindgen`.
139148
- run: cargo install --locked --version 0.70.1 bindgen-cli

0 commit comments

Comments
 (0)