Skip to content

Commit bdec806

Browse files
committed
rustdoc: Look for pandoc in ~/.cabal
1 parent 2bfed90 commit bdec806

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/rustdoc/config.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,12 @@ fn maybe_find_pandoc(
193193
let possible_pandocs = alt maybe_pandoc_cmd {
194194
some(pandoc_cmd) { [pandoc_cmd] }
195195
none {
196-
// FIXME (1936): Need to be able to expand ~ to look in .cabal
197-
["pandoc"]
196+
["pandoc"] + alt os::homedir() {
197+
some(dir) {
198+
[path::connect(dir, ".cabal/bin/pandoc")]
199+
}
200+
none { [] }
201+
}
198202
}
199203
};
200204

0 commit comments

Comments
 (0)