Skip to content

Commit

Permalink
rewrite metadata-dep-info to rmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneirical committed Jun 28, 2024
1 parent 11ac258 commit db21af1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/tools/tidy/src/allowed_run_make_makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions tests/run-make/metadata-dep-info/Makefile

This file was deleted.

20 changes: 20 additions & 0 deletions tests/run-make/metadata-dep-info/rmake.rs
Original file line number Diff line number Diff line change
@@ -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();
}

0 comments on commit db21af1

Please sign in to comment.