File tree Expand file tree Collapse file tree 15 files changed +30
-21
lines changed
rustc_codegen_cranelift/scripts Expand file tree Collapse file tree 15 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
22
22
git -c user.name=Dummy -c user.email=dummy@example.com -c commit.gpgSign=false \
23
23
am ../patches/* -stdlib-* .patch
24
24
25
- cat > config .toml << EOF
25
+ cat > bootstrap .toml << EOF
26
26
change-id = 999999
27
27
28
28
[llvm]
Original file line number Diff line number Diff line change 57
57
- name : Setup path to libgccjit
58
58
run : |
59
59
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
61
61
62
62
- name : Set env
63
63
run : |
Original file line number Diff line number Diff line change 50
50
- name : Setup path to libgccjit
51
51
if : matrix.libgccjit_version.gcc == 'libgccjit12.so'
52
52
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
54
54
echo "LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/12" >> $GITHUB_ENV
55
55
echo "LD_LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/12" >> $GITHUB_ENV
56
56
62
62
if : matrix.libgccjit_version.gcc != 'libgccjit12.so'
63
63
run : |
64
64
sudo dpkg --force-overwrite -i gcc-15.deb
65
- echo 'gcc-path = "/usr/lib"' > config .toml
65
+ echo 'gcc-path = "/usr/lib"' > bootstrap .toml
66
66
echo "LIBRARY_PATH=/usr/lib" >> $GITHUB_ENV
67
67
echo "LD_LIBRARY_PATH=/usr/lib" >> $GITHUB_ENV
68
68
Original file line number Diff line number Diff line change 47
47
run : sudo apt-get install ninja-build ripgrep llvm-14-tools libgccjit-12-dev
48
48
49
49
- 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
51
51
52
52
- name : Set env
53
53
run : |
Original file line number Diff line number Diff line change 58
58
- name : Setup path to libgccjit
59
59
run : |
60
60
sudo dpkg -i gcc-m68k-15.deb
61
- echo 'gcc-path = "/usr/lib/"' > config .toml
61
+ echo 'gcc-path = "/usr/lib/"' > bootstrap .toml
62
62
63
63
- name : Set env
64
64
run : |
Original file line number Diff line number Diff line change 42
42
- name : Setup path to libgccjit
43
43
run : |
44
44
sudo dpkg --force-overwrite -i gcc-15.deb
45
- echo 'gcc-path = "/usr/lib/"' > config .toml
45
+ echo 'gcc-path = "/usr/lib/"' > bootstrap .toml
46
46
47
47
- name : Set env
48
48
run : |
Original file line number Diff line number Diff line change 60
60
- name : Set env
61
61
run : |
62
62
echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV
63
- echo 'download-gccjit = true' > config .toml
63
+ echo 'download-gccjit = true' > bootstrap .toml
64
64
65
65
- name : Build
66
66
run : |
Original file line number Diff line number Diff line change @@ -19,4 +19,5 @@ tools/llvmint-2
19
19
llvm
20
20
build_system /target
21
21
config.toml
22
+ bootstrap.toml
22
23
build
Original file line number Diff line number Diff line change 9
9
! * asm *
10
10
! .github
11
11
! 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
26
26
You need to use my [ fork of gcc] ( https://github.com/antoyo/gcc ) which already includes these patches.**
27
27
28
28
``` bash
29
- $ cp config .example.toml config .toml
29
+ $ cp bootstrap .example.toml bootstrap .toml
30
30
```
31
31
32
32
If 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
69
69
$ make check-jit RUNTESTFLAGS=" -v -v -v jit.exp=jit.dg/test-asm.cc"
70
70
```
71
71
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` .**
73
73
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:
75
75
76
76
``` bash
77
77
$ dirname $( readlink -f ` find . -name libgccjit.so` )
You can’t perform that action at this time.
0 commit comments