mirror of
https://github.com/rust-lang/rust
synced 2024-09-19 16:32:34 +00:00
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:
parent
e75edd5e43
commit
d88776726a
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue