Skip to content

Commit 96628f6

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

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/nightly_rustc.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,24 @@ 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+
cat <<'EOF' > patch.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+
EOF
94+
95+
cd rust
96+
cat patch.toml >> Cargo.toml
97+
cat patch.toml >> compiler/rustc_codegen_gcc/Cargo.toml
98+
99+
cargo update -p rustix
100+
cd compiler/rustc_codegen_gcc/
101+
cargo update -p rustix
102+
103+
cargo tree -i linux-raw-sys 2>&1 | rg "was not used in the crate graph" && (echo "Unused patches found"; cargo tree; exit 1)
87104
88105
- name: Compile rustc
89106
run: |

0 commit comments

Comments
 (0)