File tree Expand file tree Collapse file tree 16 files changed +30
-21
lines changed
rustc_codegen_cranelift/scripts Expand file tree Collapse file tree 16 files changed +30
-21
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ git submodule update --quiet --init src/tools/cargo library/backtrace library/st
2222git -c user.name=Dummy -c user.email=dummy@example.com -c commit.gpgSign=false \
2323 am ../patches/* -stdlib-* .patch
2424
25- cat > config .toml << EOF
25+ cat > bootstrap .toml << EOF
2626change-id = 999999
2727
2828[llvm]
Original file line number Diff line number Diff line change 5757 - name : Setup path to libgccjit
5858 run : |
5959 sudo dpkg --force-overwrite -i ${{ matrix.libgccjit_version.gcc }}
60- echo 'gcc-path = "/usr/lib/"' > config .toml
60+ echo 'gcc-path = "/usr/lib/"' > bootstrap .toml
6161
6262 - name : Set env
6363 run : |
Original file line number Diff line number Diff line change 5050 - name : Setup path to libgccjit
5151 if : matrix.libgccjit_version.gcc == 'libgccjit12.so'
5252 run : |
53- echo 'gcc-path = "/usr/lib/gcc/x86_64-linux-gnu/12"' > config .toml
53+ echo 'gcc-path = "/usr/lib/gcc/x86_64-linux-gnu/12"' > bootstrap .toml
5454 echo "LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/12" >> $GITHUB_ENV
5555 echo "LD_LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/12" >> $GITHUB_ENV
5656
6262 if : matrix.libgccjit_version.gcc != 'libgccjit12.so'
6363 run : |
6464 sudo dpkg --force-overwrite -i gcc-15.deb
65- echo 'gcc-path = "/usr/lib"' > config .toml
65+ echo 'gcc-path = "/usr/lib"' > bootstrap .toml
6666 echo "LIBRARY_PATH=/usr/lib" >> $GITHUB_ENV
6767 echo "LD_LIBRARY_PATH=/usr/lib" >> $GITHUB_ENV
6868
Original file line number Diff line number Diff line change 4747 run : sudo apt-get install ninja-build ripgrep llvm-14-tools libgccjit-12-dev
4848
4949 - name : Setup path to libgccjit
50- run : echo 'gcc-path = "/usr/lib/gcc/x86_64-linux-gnu/12"' > config .toml
50+ run : echo 'gcc-path = "/usr/lib/gcc/x86_64-linux-gnu/12"' > bootstrap .toml
5151
5252 - name : Set env
5353 run : |
Original file line number Diff line number Diff line change 5858 - name : Setup path to libgccjit
5959 run : |
6060 sudo dpkg -i gcc-m68k-15.deb
61- echo 'gcc-path = "/usr/lib/"' > config .toml
61+ echo 'gcc-path = "/usr/lib/"' > bootstrap .toml
6262
6363 - name : Set env
6464 run : |
Original file line number Diff line number Diff line change 4242 - name : Setup path to libgccjit
4343 run : |
4444 sudo dpkg --force-overwrite -i gcc-15.deb
45- echo 'gcc-path = "/usr/lib/"' > config .toml
45+ echo 'gcc-path = "/usr/lib/"' > bootstrap .toml
4646
4747 - name : Set env
4848 run : |
Original file line number Diff line number Diff line change 6060 - name : Set env
6161 run : |
6262 echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV
63- echo 'download-gccjit = true' > config .toml
63+ echo 'download-gccjit = true' > bootstrap .toml
6464
6565 - name : Build
6666 run : |
Original file line number Diff line number Diff line change @@ -19,4 +19,5 @@ tools/llvmint-2
1919llvm
2020build_system /target
2121config.toml
22+ bootstrap.toml
2223build
Original file line number Diff line number Diff line change 99! * asm *
1010! .github
1111! config.toml
12+ ! bootstrap.toml
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ A secondary goal is to check if using the gcc backend will provide any run-time
2626You need to use my [ fork of gcc] ( https://github.com/antoyo/gcc ) which already includes these patches.**
2727
2828``` bash
29- $ cp config .example.toml config .toml
29+ $ cp bootstrap .example.toml bootstrap .toml
3030```
3131
3232If don't need to test GCC patches you wrote in our GCC fork, then the default configuration should
@@ -69,9 +69,9 @@ $ make check-jit
6969$ make check-jit RUNTESTFLAGS=" -v -v -v jit.exp=jit.dg/test-asm.cc"
7070```
7171
72- ** Put the path to your custom build of libgccjit in the file ` config .toml` .**
72+ ** Put the path to your custom build of libgccjit in the file ` bootstrap .toml` .**
7373
74- You now need to set the ` gcc-path ` value in ` config .toml` with the result of this command:
74+ You now need to set the ` gcc-path ` value in ` bootstrap .toml` with the result of this command:
7575
7676``` bash
7777$ dirname $( readlink -f ` find . -name libgccjit.so` )
You can’t perform that action at this time.
0 commit comments