mirror of https://github.com/rust-lang/rust.git
rewrite metadata-dep-info to rmake
This commit is contained in:
parent
11ac258a5f
commit
db21af1a72
|
@ -98,7 +98,6 @@ run-make/lto-smoke-c/Makefile
|
|||
run-make/macos-deployment-target/Makefile
|
||||
run-make/macos-fat-archive/Makefile
|
||||
run-make/manual-link/Makefile
|
||||
run-make/metadata-dep-info/Makefile
|
||||
run-make/min-global-align/Makefile
|
||||
run-make/mingw-export-call-convention/Makefile
|
||||
run-make/mismatching-target-triples/Makefile
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) --emit=metadata,dep-info --crate-type lib dash-separated.rs -C extra-filename=_something-extra
|
||||
# Strip TMPDIR since it is a machine specific absolute path
|
||||
sed "s%.*[/\\]%%" "$(TMPDIR)"/dash-separated_something-extra.d > "$(TMPDIR)"/dash-separated_something-extra.normalized.d
|
||||
$(RUSTC_TEST_OP) "$(TMPDIR)"/dash-separated_something-extra.normalized.d dash-separated_something-extra.normalized.d
|
|
@ -0,0 +1,20 @@
|
|||
// Emitting dep-info alongside metadata would present subtle discrepancies
|
||||
// in the output file, such as the filename transforming underscores_ into hyphens-.
|
||||
// After the fix in #114750, this test checks that the emitted files are identical
|
||||
// to the expected output.
|
||||
// See https://github.com/rust-lang/rust/issues/68839
|
||||
|
||||
use run_make_support::{diff, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc()
|
||||
.emit("metadata,dep-info")
|
||||
.crate_type("lib")
|
||||
.input("dash-separated.rs")
|
||||
.extra_filename("_something-extra")
|
||||
.run();
|
||||
diff()
|
||||
.expected_file("dash-separated_something-extra.expected.d")
|
||||
.actual_file("dash-separated_something-extra.d")
|
||||
.run();
|
||||
}
|
Loading…
Reference in New Issue