mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 02:40:40 +00:00

Add some constraints to run-make tests that require specific target support and will fail without them.
16 lines
469 B
Rust
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();
|
|
}
|