mirror of https://github.com/rust-lang/rust
15 lines
438 B
Rust
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();
|
|
}
|