rewrite separate-link to rmake.rs
This commit is contained in:
parent
11380368dc
commit
10db8c7bc2
3 changed files with 14 additions and 8 deletions
|
@ -203,7 +203,6 @@ run-make/sanitizer-cdylib-link/Makefile
|
||||||
run-make/sanitizer-dylib-link/Makefile
|
run-make/sanitizer-dylib-link/Makefile
|
||||||
run-make/sanitizer-staticlib-link/Makefile
|
run-make/sanitizer-staticlib-link/Makefile
|
||||||
run-make/separate-link-fail/Makefile
|
run-make/separate-link-fail/Makefile
|
||||||
run-make/separate-link/Makefile
|
|
||||||
run-make/sepcomp-cci-copies/Makefile
|
run-make/sepcomp-cci-copies/Makefile
|
||||||
run-make/sepcomp-inlining/Makefile
|
run-make/sepcomp-inlining/Makefile
|
||||||
run-make/sepcomp-separate/Makefile
|
run-make/sepcomp-separate/Makefile
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
# ignore-cross-compile
|
|
||||||
include ../tools.mk
|
|
||||||
|
|
||||||
all:
|
|
||||||
echo 'fn main(){}' | $(RUSTC) -Z no-link -
|
|
||||||
$(RUSTC) -Z link-only $(TMPDIR)/rust_out.rlink
|
|
||||||
$(call RUN,rust_out)
|
|
14
tests/run-make/separate-link/rmake.rs
Normal file
14
tests/run-make/separate-link/rmake.rs
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
// The compiler flags no-link (and by extension, link-only) used to be broken
|
||||||
|
// due to changes in encoding/decoding. This was patched, and this test ensures
|
||||||
|
// that these flags are not broken again, resulting in successful compilation.
|
||||||
|
// See https://github.com/rust-lang/rust/issues/77857
|
||||||
|
|
||||||
|
//@ ignore-cross-compile
|
||||||
|
|
||||||
|
use run_make_support::{run, rustc};
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
rustc().stdin(b"fn main(){}").arg("-Zno-link").arg("-").run();
|
||||||
|
rustc().arg("-Zlink-only").input("rust_out.rlink").run();
|
||||||
|
run("rust_out");
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue