rust/tests/run-make/rustdoc-target-spec-json-path/rmake.rs
2026-01-26 12:08:04 +00:00

21 lines
575 B
Rust

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