clean up rmake test
This commit is contained in:
parent
20c67131c6
commit
7638889f41
2 changed files with 20 additions and 21 deletions
|
|
@ -13,7 +13,6 @@ run-make/dep-info/Makefile
|
|||
run-make/dump-ice-to-disk/Makefile
|
||||
run-make/emit-to-stdout/Makefile
|
||||
run-make/export-executable-symbols/Makefile
|
||||
run-make/extern-flag-disambiguates/Makefile
|
||||
run-make/extern-fn-reachable/Makefile
|
||||
run-make/fmt-write-bloat/Makefile
|
||||
run-make/foreign-double-unwind/Makefile
|
||||
|
|
|
|||
|
|
@ -1,30 +1,30 @@
|
|||
//@ ignore-cross-compile
|
||||
|
||||
use run_make_support::{cwd, run, run_in_tmpdir, rustc};
|
||||
use run_make_support::{cwd, run, rustc};
|
||||
|
||||
// Attempt to build this dependency tree:
|
||||
//
|
||||
// A.1 A.2
|
||||
// |\ |
|
||||
// | \ |
|
||||
// B \ C
|
||||
// \ | /
|
||||
// \|/
|
||||
// D
|
||||
// A.1 A.2
|
||||
// |\ |
|
||||
// | \ |
|
||||
// B \ C
|
||||
// \ | /
|
||||
// \|/
|
||||
// D
|
||||
//
|
||||
// Note that A.1 and A.2 are crates with the same name.
|
||||
|
||||
// original Makefile at https://github.com/rust-lang/rust/commit/cc3c8bbfaf5af19caf3deb131a995a65ca4674f9#diff-23d3f6bcee0c974ae7c793ab6f87c454cffd1f5c9ec17ce86aaf2cf8bc6e5397
|
||||
|
||||
fn main() {
|
||||
run_in_tmpdir(|| {
|
||||
rustc().metadata("1").extra_filename("-1").input("a.rs").run();
|
||||
rustc().metadata("2").extra_filename("-2").input("a.rs").run();
|
||||
rustc().input("b.rs").extern_("a", "liba-1.rlib").run();
|
||||
rustc().input("c.rs").extern_("a", "liba-2.rlib").run();
|
||||
println!("before");
|
||||
rustc().cfg("before").input("d.rs").extern_("a", "liba-1.rlib").run();
|
||||
run("d");
|
||||
println!("after");
|
||||
rustc().cfg("after").input("d.rs").extern_("a", "liba-1.rlib").run();
|
||||
run("d");
|
||||
});
|
||||
rustc().metadata("1").extra_filename("-1").input("a.rs").run();
|
||||
rustc().metadata("2").extra_filename("-2").input("a.rs").run();
|
||||
rustc().input("b.rs").extern_("a", "liba-1.rlib").run();
|
||||
rustc().input("c.rs").extern_("a", "liba-2.rlib").run();
|
||||
println!("before");
|
||||
rustc().cfg("before").input("d.rs").extern_("a", "liba-1.rlib").run();
|
||||
run("d");
|
||||
println!("after");
|
||||
rustc().cfg("after").input("d.rs").extern_("a", "liba-1.rlib").run();
|
||||
run("d");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue