Skip to content

Commit d887767

Browse files
committed
rustc: Preserve dots in input path when using an implicit output path
This avoids outputing, e.g. /test.bc for ../test.rs
1 parent e75edd5 commit d887767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/comp/driver/rustc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ fn main(vec[str] args) {
234234
case (none[str]) {
235235
let vec[str] parts = _str.split(ifile, '.' as u8);
236236
_vec.pop[str](parts);
237-
parts += vec(".bc");
238-
auto ofile = _str.concat(parts);
237+
parts += vec("bc");
238+
auto ofile = _str.connect(parts, ".");
239239
compile_input(sess, env, ifile, ofile, shared,
240240
optimize, verify, save_temps, ot,
241241
time_passes, run_typestate,

0 commit comments

Comments
 (0)