From 6600ba97c352058b08e077f7ae64dc92f87fadb6 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 2 Dec 2013 21:26:40 -0800 Subject: [PATCH] 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. --- src/librustdoc/core.rs | 1 + 1 file changed, 1 insertion(+) 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() };