Skip to content

Commit 2217838

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

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/nightly_rustc.yml

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

0 commit comments

Comments
 (0)