File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8383 mkdir -p $dir
8484 mv libgccjit-${{ matrix.arch.cross_target }}.so $dir/libgccjit.so
8585
86- # TODO: patch linux-raw-sys and rustix.
86+ - name : Patch linux-raw-sys and rustix.
87+ if : ${{ matrix.arch.cross_target != '' }}
88+ run : |
89+ toml='
90+ [patch.crates-io]
91+ linux-raw-sys = { git = "https://github.com/antoyo/linux-raw-sys", branch = "m68k-support" }
92+ rustix = { git = "https://github.com/antoyo/rustix", branch = "m68k-support" }
93+ '
94+ cd rust
95+ echo $toml >> Cargo.toml
96+ echo $toml >> compiler/rustc_codegen_gcc/Cargo.toml
97+
98+ cargo update -p rustix
99+ cd compiler/rustc_codegen_gcc/
100+ cargo update -p rustix
101+
102+ cargo tree -i linux-raw-sys 2>&1 | rg "was not used in the crate graph" && (echo "Unused patches found"; cargo tree; exit 1)
87103
88104 - name : Compile rustc
89105 run : |
You can’t perform that action at this time.
0 commit comments