From 885af595f4160435f80da6894bc7cd9eb28722de Mon Sep 17 00:00:00 2001 From: Antoni Boucher Date: Sun, 30 Nov 2025 10:37:34 -0500 Subject: [PATCH] Copy libgccjit.so in the sysroot to fix the issue --- .github/workflows/ci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 271d9ee..a9d4458 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -128,6 +128,10 @@ jobs: echo "MAKE_KRUSTFLAGS=KRUSTFLAGS=-Zcodegen-backend=$(pwd)/rustc_codegen_gcc/target/release/librustc_codegen_gcc.so" >> $GITHUB_ENV + # Since the Makefile uses the sysroot provided by rustup, we need to + # manually copy libgccjit.so in this sysroot directory. + ln -s /usr/lib/libgccjit.so ~/.rustup/toolchains/$rust_version-x86_64-unknown-linux-gnu/lib/ + cd rustc_codegen_gcc echo 'gcc-path = "/usr/lib"' > config.toml #sed -i '/channel/d' rust-toolchain