From 3097237886db50f1f184cbc810d6f0c69d9a9cb8 Mon Sep 17 00:00:00 2001 From: Antoni Boucher Date: Sun, 21 Dec 2025 07:55:22 -0500 Subject: [PATCH] Fix location of libgccjit.so in the sysroot --- .github/workflows/ci.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b788242..fa9b6fe 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -133,7 +133,11 @@ jobs: # 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/ + dir1=~/.rustup/toolchains/$rust_version-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/lib/x86_64-linux-gnu/ + 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/ + mkdir -p $dir1 $dir2 + ln -s /usr/lib/libgccjit.so $dir1/libgccjit.so + ln -s /usr/lib/libgccjit.so $dir2/libgccjit.so cd rustc_codegen_gcc echo 'gcc-path = "/usr/lib"' > config.toml