Skip to content

Commit

Permalink
Migrate run-make/rustdoc-target-spec-json-path to rmake
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed May 13, 2024
1 parent eea00ca commit 59dab66
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/run-make/rustdoc-target-spec-json-path/Makefile

This file was deleted.

15 changes: 15 additions & 0 deletions tests/run-make/rustdoc-target-spec-json-path/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Test that rustdoc will properly canonicalize the target spec json path just like rustc.

use run_make_support::{rustc, rustdoc, tmp_dir};

fn main() {
let out_dir = tmp_dir().join("rustdoc-target-spec-json-path");
rustc().crate_type("lib").input("dummy_core.rs").target("target.json").run();
rustdoc()
.input("my_crate.rs")
.output(out_dir)
.arg("-L")
.arg(tmp_dir())
.target("target.json")
.run();
}

0 comments on commit 59dab66

Please sign in to comment.