1
Fork 0

Migrate run-make/rustdoc-target-spec-json-path to rmake

This commit is contained in:
Guillaume Gomez 2024-05-13 15:04:36 +02:00
parent 4057a7b1e3
commit b515de83af
3 changed files with 14 additions and 10 deletions

View file

@ -0,0 +1,14 @@
// 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)
.library_search_path(tmp_dir())
.target("target.json")
.run();
}