提交 6a6aec04 编写于 作者: G Graydon Hoare

Fix --out-dir a bit more in driver.

上级 b0d5436d
......@@ -564,11 +564,13 @@ fn build_output_filenames(ifile: str,
}
};
let (base_path, _) = if !input_is_stdin(ifile) {
fs::splitext(ifile)
let base_filename = if !input_is_stdin(ifile) {
let (path, _) = fs::splitext(ifile);
fs::basename(path)
} else {
(fs::connect(dirname, "rust_out"), "")
"rust_out"
};
let base_path = fs::connect(dirname, base_filename);
if sess.building_library {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册