diff options
| author | Cody P Schafer <dev@codyps.com> | 2014-11-18 18:56:12 -0500 |
|---|---|---|
| committer | Cody P Schafer <dev@codyps.com> | 2014-11-20 16:00:12 -0500 |
| commit | bc5a139baa928b8a440e9053a3d7e0d4cc932f98 (patch) | |
| tree | 3586937fd5d74e6a021e2cf3622ce613155831cf | |
| parent | 29cc7c2adf0bdbe00fc65ff0a7393668eead7a22 (diff) | |
rustdoc: avoid supplying a bad default sysroot so the librustc code can calculate it properly
| -rw-r--r-- | src/librustdoc/core.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs index 21242e6f1e4..b040a4bfd2a 100644 --- a/src/librustdoc/core.rs +++ b/src/librustdoc/core.rs @@ -18,7 +18,6 @@ use rustc_trans::back::link; use syntax::{ast, ast_map, codemap, diagnostic}; use std::cell::RefCell; -use std::os; use std::collections::{HashMap, HashSet}; use arena::TypedArena; @@ -89,7 +88,7 @@ pub fn run_core(libs: Vec<Path>, cfgs: Vec<String>, externs: Externs, let warning_lint = lint::builtin::WARNINGS.name_lower(); let sessopts = config::Options { - maybe_sysroot: Some(os::self_exe_path().unwrap().dir_path()), + maybe_sysroot: None, addl_lib_search_paths: RefCell::new(libs), crate_types: vec!(config::CrateTypeRlib), lint_opts: vec!((warning_lint, lint::Allow)), |
