Skip to content

Commit 10db8c7

Browse files
committed
rewrite separate-link to rmake.rs
1 parent 1138036 commit 10db8c7

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ run-make/sanitizer-cdylib-link/Makefile
203203
run-make/sanitizer-dylib-link/Makefile
204204
run-make/sanitizer-staticlib-link/Makefile
205205
run-make/separate-link-fail/Makefile
206-
run-make/separate-link/Makefile
207206
run-make/sepcomp-cci-copies/Makefile
208207
run-make/sepcomp-inlining/Makefile
209208
run-make/sepcomp-separate/Makefile

tests/run-make/separate-link/Makefile

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/run-make/separate-link/rmake.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// The compiler flags no-link (and by extension, link-only) used to be broken
2+
// due to changes in encoding/decoding. This was patched, and this test ensures
3+
// that these flags are not broken again, resulting in successful compilation.
4+
// See https://github.com/rust-lang/rust/issues/77857
5+
6+
//@ ignore-cross-compile
7+
8+
use run_make_support::{run, rustc};
9+
10+
fn main() {
11+
rustc().stdin(b"fn main(){}").arg("-Zno-link").arg("-").run();
12+
rustc().arg("-Zlink-only").input("rust_out.rlink").run();
13+
run("rust_out");
14+
}

0 commit comments

Comments
 (0)