Skip to content

Commit 370101c

Browse files
committed
rustdoc: avoid supplying a bad default sysroot so the librustc code can calculate it properly
1 parent 8a273a8 commit 370101c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustdoc/core.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ use rustc_trans::back::link;
1818
use syntax::{ast, ast_map, codemap, diagnostic};
1919

2020
use std::cell::RefCell;
21-
use std::os;
2221
use std::collections::{HashMap, HashSet};
2322
use arena::TypedArena;
2423

@@ -89,7 +88,7 @@ pub fn run_core(libs: Vec<Path>, cfgs: Vec<String>, externs: Externs,
8988
let warning_lint = lint::builtin::WARNINGS.name_lower();
9089

9190
let sessopts = config::Options {
92-
maybe_sysroot: Some(os::self_exe_path().unwrap().dir_path()),
91+
maybe_sysroot: None,
9392
addl_lib_search_paths: RefCell::new(libs),
9493
crate_types: vec!(config::CrateTypeRlib),
9594
lint_opts: vec!((warning_lint, lint::Allow)),

0 commit comments

Comments
 (0)