-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate
run-make/rustdoc-target-spec-json-path
to rmake
- Loading branch information
1 parent
eea00ca
commit 59dab66
Showing
2 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Test that rustdoc will properly canonicalize the target spec json path just like rustc. | ||
|
||
use run_make_support::{rustc, rustdoc, tmp_dir}; | ||
|
||
fn main() { | ||
let out_dir = tmp_dir().join("rustdoc-target-spec-json-path"); | ||
rustc().crate_type("lib").input("dummy_core.rs").target("target.json").run(); | ||
rustdoc() | ||
.input("my_crate.rs") | ||
.output(out_dir) | ||
.arg("-L") | ||
.arg(tmp_dir()) | ||
.target("target.json") | ||
.run(); | ||
} |