rustc: Preserve dots in input path when using an implicit output path

This avoids outputing, e.g. /test.bc for ../test.rs
This commit is contained in:
Brian Anderson 2011-05-01 14:42:45 -04:00
parent e75edd5e43
commit d88776726a

View file

@ -234,8 +234,8 @@ fn main(vec[str] args) {
case (none[str]) {
let vec[str] parts = _str.split(ifile, '.' as u8);
_vec.pop[str](parts);
parts += vec(".bc");
auto ofile = _str.concat(parts);
parts += vec("bc");
auto ofile = _str.connect(parts, ".");
compile_input(sess, env, ifile, ofile, shared,
optimize, verify, save_temps, ot,
time_passes, run_typestate,