From 0f30ce01f82db9a6b2e72529d7f93b28820e7b8e Mon Sep 17 00:00:00 2001 From: Paul Gey Date: Tue, 7 Apr 2026 19:21:51 +0200 Subject: [PATCH] Install `libgccjit.so` into correct location The location that `rustc-cg-gcc` expects its `libgccjit.so` in was moved recently in https://github.com/rust-lang/rust/commit/c0d4f5fab1104ef8b96750352917e018d0d99e04. --- rust-cg-gcc/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rust-cg-gcc/build.sh b/rust-cg-gcc/build.sh index bb9e69c..5242c42 100755 --- a/rust-cg-gcc/build.sh +++ b/rust-cg-gcc/build.sh @@ -151,7 +151,9 @@ mkdir -p toolroot mv rustup/toolchains/*/* toolroot/ # libgccjit -mv $PREFIX/lib/libgccjit.so* toolroot/lib +libgccjit_dir=toolroot/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/lib/x86_64-unknown-linux-gnu +mkdir -p $libgccjit_dir +mv $PREFIX/lib/libgccjit.so* $libgccjit_dir # cg_gcc backend mv ./rustc_codegen_gcc/target/release/librustc_codegen_gcc.so toolroot/lib