-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
0e93740
commit 8d74959
Showing
3 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
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
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,14 @@ | ||
// 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) | ||
.library_search_path(tmp_dir()) | ||
.target("target.json") | ||
.run(); | ||
} |