Skip to content

Commit b14c5a5

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

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,24 @@ 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 we use rustc_codegen_gcc from the master branch of the repo,
133+
# but don't use y.sh in make to build using rustc_codegen_gcc, we
134+
# need to manually copy libgccjit.so in the sysroot directory.
135+
ln -s /usr/lib/libgccjit.so ~/.rustup/toolchains/$rust_version-x86_64-unknown-linux-gnu/lib/
136+
ls ~/.rustup/toolchains/$rust_version-x86_64-unknown-linux-gnu/lib/
137+
131138
cd rustc_codegen_gcc
132139
echo 'gcc-path = "/usr/lib"' > config.toml
133140
#sed -i '/channel/d' rust-toolchain
134141
export RUSTC_BOOTSTRAP=1
135142
./y.sh prepare --only-libcore
136143
./y.sh build --sysroot --release
144+
ls /home/runner/.rustup/toolchains/nightly-2025-11-24-x86_64-unknown-linux-gnu/lib/
145+
echo **********
146+
ls -R ..
147+
echo **********
148+
find / -name libgccjit.so
137149
138150
# Setup: `bindgen`.
139151
- run: cargo install --locked --version 0.70.1 bindgen-cli

0 commit comments

Comments
 (0)