Skip to content

Commit 345528a

Browse files
committed
Fix location of libgccjit.so in the sysroot
1 parent e53f960 commit 345528a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ jobs:
133133
134134
# Since the Makefile uses the sysroot provided by rustup, we need to
135135
# manually copy libgccjit.so in this sysroot directory.
136-
ln -s /usr/lib/libgccjit.so ~/.rustup/toolchains/$rust_version-x86_64-unknown-linux-gnu/lib/
136+
dir=~/.rustup/toolchains/$rust_version-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/lib/x86_64-linux-gnu/
137+
mkdir -p $dir
138+
ln -s /usr/lib/libgccjit.so $dir/libgccjit.so
137139
138140
cd rustc_codegen_gcc
139141
echo 'gcc-path = "/usr/lib"' > config.toml

0 commit comments

Comments
 (0)