Skip to content

Commit 0e93740

Browse files
Add library_search_path to Rustdoc
1 parent eea00ca commit 0e93740

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tools/run-make-support/src/rustdoc.rs

+7
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@ impl Rustdoc {
143143
self
144144
}
145145

146+
/// Add a directory to the library search path.
147+
pub fn library_search_path<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
148+
self.cmd.arg("-L");
149+
self.cmd.arg(path.as_ref());
150+
self
151+
}
152+
146153
#[track_caller]
147154
pub fn run_fail_assert_exit_code(&mut self, code: i32) -> Output {
148155
let caller_location = std::panic::Location::caller();

0 commit comments

Comments
 (0)