summary refs log tree commit diff
path: root/tests/run-make/rustdoc-target-spec-json-path/rmake.rs
blob: d43aa9b90ac72fc26efbf4b503656b7a1c2a272b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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();
}