David Tenty 21af154998 [test][run-make] add needs-llvm-components
Add some constraints to run-make tests that require specific target support and will fail without them.
2025-07-30 00:39:43 -04:00

16 lines
469 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().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();
}