rust/tests/run-make/rustdoc-target-spec-json-path/rmake.rs
2024-08-15 15:44:29 +02:00

15 lines
438 B
Rust

// Test that rustdoc will properly canonicalize the target spec json path just like rustc.
use run_make_support::{cwd, rustc, rustdoc};
fn main() {
let out_dir = "rustdoc-target-spec-json-path";
rustc().crate_type("lib").input("dummy_core.rs").target("target.json").run();
rustdoc()
.input("my_crate.rs")
.out_dir(out_dir)
.library_search_path(cwd())
.target("target.json")
.run();
}