diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-12-02 21:26:40 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-12-02 21:26:40 -0800 |
| commit | 6600ba97c352058b08e077f7ae64dc92f87fadb6 (patch) | |
| tree | bf155d18d464bde935379ff81ae001b2e7ada5d5 | |
| parent | 8cb59d3868870b1e41e53e75e17272c94eeb1702 (diff) | |
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.
| -rw-r--r-- | src/librustdoc/core.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs index dc8e9072499..b0ff224badb 100644 --- a/src/librustdoc/core.rs +++ b/src/librustdoc/core.rs @@ -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() }; |
