File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed 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+ cd rust
90+
91+ cat <<'EOF' > patch.toml
92+ [patch.crates-io]
93+ linux-raw-sys = { git = "https://github.com/antoyo/linux-raw-sys", branch = "m68k-support" }
94+ rustix = { git = "https://github.com/antoyo/rustix", branch = "m68k-support" }
95+ EOF
96+
97+ cat patch.toml >> Cargo.toml
98+ cat patch.toml >> compiler/rustc_codegen_gcc/Cargo.toml
99+
100+ cargo update -p rustix
101+ cd compiler/rustc_codegen_gcc/
102+ cargo update -p rustix
103+
104+ cargo tree -i linux-raw-sys 2>&1 | grep "was not used in the crate graph" && (echo "Unused patches found"; cargo tree; exit 1) || exit 0
87105
88106 - name : Compile rustc
89107 run : |
You can’t perform that action at this time.
0 commit comments