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.
This commit is contained in:
Alex Crichton 2013-12-02 21:26:40 -08:00
parent 8cb59d3868
commit 6600ba97c3
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ fn get_ast_and_resolve(cpath: &Path,
binary: @"rustdoc",
maybe_sysroot: Some(@os::self_exe_path().unwrap().dir_path()),
addl_lib_search_paths: @mut libs,
outputs: ~[driver::session::OutputDylib],
.. (*rustc::driver::session::basic_options()).clone()
};