2024-05-13 15:04:36 +02:00
|
|
|
// Test that rustdoc will properly canonicalize the target spec json path just like rustc.
|
2025-07-30 00:39:43 -04:00
|
|
|
//@ needs-llvm-components: x86
|
2024-05-13 15:04:36 +02:00
|
|
|
|
2024-06-06 21:34:34 +02:00
|
|
|
use run_make_support::{cwd, rustc, rustdoc};
|
2024-05-13 15:04:36 +02:00
|
|
|
|
|
|
|
|
fn main() {
|
2024-06-06 21:34:34 +02:00
|
|
|
let out_dir = "rustdoc-target-spec-json-path";
|
2024-05-13 15:04:36 +02:00
|
|
|
rustc().crate_type("lib").input("dummy_core.rs").target("target.json").run();
|
|
|
|
|
rustdoc()
|
|
|
|
|
.input("my_crate.rs")
|
2024-08-15 14:44:48 +02:00
|
|
|
.out_dir(out_dir)
|
2024-06-06 21:34:34 +02:00
|
|
|
.library_search_path(cwd())
|
2024-05-13 15:04:36 +02:00
|
|
|
.target("target.json")
|
|
|
|
|
.run();
|
|
|
|
|
}
|