Skip to content

Commit 9a46c12

Browse files
committed
Patch linux-raw-sys and rustix
1 parent fb83dfb commit 9a46c12

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/nightly_rustc.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,23 @@ jobs:
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: |

0 commit comments

Comments
 (0)