Skip to content

Commit 63bc3f6

Browse files
committed
Download native libgccjit.so for m68k
1 parent 869b8af commit 63bc3f6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/nightly_rustc.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,29 +61,29 @@ jobs:
6161
sudo dpkg --force-overwrite -i package.deb
6262
done
6363
64-
# TODO: patch linux-raw-sys and rustix.
65-
- name: Move libgccjit.so in libgccjit-libs-dir
64+
- name: Download cross-compiling libgccjit.so and move it in libgccjit-libs-dir
6665
if: ${{ matrix.arch.cross_target != '' }}
6766
run: |
6867
curl -LO https://github.com/cross-cg-gcc-tools/cross-gcc/releases/latest/download/gcc-${{ matrix.arch.cross_target }}-15.deb
6968
7069
sudo dpkg-deb -x gcc-${{ matrix.arch.cross_target }}-15.deb cross-gcc
71-
echo ****
72-
ls cross-gcc
73-
echo ****
74-
ls cross-gcc/usr/lib
75-
echo ****
76-
ls -R
7770
dir=$HOME/libgccjit-libs-dir/x86_64-unknown-linux-gnu/${{ matrix.arch.host_target }}
7871
mkdir -p $dir
7972
# TODO: create a symlink instead of a copy.
8073
cp cross-gcc/usr/lib/libgccjit.so.0.0.1 $dir/libgccjit.so
8174
8275
echo "$(pwd)/cross-gcc/usr/bin" >> $GITHUB_PATH
8376
84-
ls /home/runner/libgccjit-libs-dir/x86_64-unknown-linux-gnu/m68k-unknown-linux-gnu/libgccjit.so
85-
echo ****
86-
ls -R /home/runner/libgccjit-libs-dir
77+
- name: Download native libgccjit.so and move it in libgccjit-libs-dir
78+
if: ${{ matrix.arch.cross_target != '' }}
79+
run: |
80+
curl -LO https://github.com/cross-cg-gcc-tools/native-gcc/releases/latest/download/libgccjit-${{ matrix.arch.cross_target }}.so
81+
82+
dir=$HOME/libgccjit-libs-dir/${{ matrix.arch.host_target }}/${{ matrix.arch.host_target }}
83+
mkdir -p $dir
84+
mv libgccjit.so $dir/
85+
86+
# TODO: patch linux-raw-sys and rustix.
8787

8888
- name: Compile rustc
8989
run: |

0 commit comments

Comments
 (0)