Skip to content

Commit 6600ba9

Browse files
committed
rustdoc: Tell rustc we're building a library
This makes sure that when generating documentation we don't waste time doing things like looking for a main function.
1 parent 8cb59d3 commit 6600ba9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustdoc/core.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ fn get_ast_and_resolve(cpath: &Path,
5151
binary: @"rustdoc",
5252
maybe_sysroot: Some(@os::self_exe_path().unwrap().dir_path()),
5353
addl_lib_search_paths: @mut libs,
54+
outputs: ~[driver::session::OutputDylib],
5455
.. (*rustc::driver::session::basic_options()).clone()
5556
};
5657

0 commit comments

Comments
 (0)