Skip to content

Commit

Permalink
Add library_search_path to Rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed May 13, 2024
1 parent eea00ca commit 4057a7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tools/run-make-support/src/rustdoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ impl Rustdoc {
self
}

/// Add a directory to the library search path. It corresponds to the `-L`
/// rustdoc option.
pub fn library_search_path<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
self.cmd.arg("-L");
self.cmd.arg(path.as_ref());
self
}

#[track_caller]
pub fn run_fail_assert_exit_code(&mut self, code: i32) -> Output {
let caller_location = std::panic::Location::caller();
Expand Down

0 comments on commit 4057a7b

Please sign in to comment.