Skip to content

Commit 4e7de69

Browse files
committed
Partial fix for #1561, doesn't actually "fix" the problem but you get output now.
There's still something wrong with #error here, possibly cross-crate issue.
1 parent 5378d51 commit 4e7de69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/comp/driver/driver.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import back::link;
1313
import core::{option, str, int, result};
1414
import result::{ok, err};
1515
import std::{fs, io, getopts};
16-
import io::reader_util;
16+
import io::{reader_util, writer_util};
1717
import option::{some, none};
1818
import getopts::{optopt, optmulti, optflag, optflagopt, opt_present};
1919
import back::{x86, x86_64};
@@ -104,8 +104,8 @@ fn time<T>(do_it: bool, what: str, thunk: fn@() -> T) -> T {
104104
let start = std::time::precise_time_s();
105105
let rv = thunk();
106106
let end = std::time::precise_time_s();
107-
std::io::println(#fmt["time: %s took %s s", what,
108-
float::to_str(end - start, 3u)]);
107+
io::stdout().write_str(#fmt("time: %3.3f s\t%s\n",
108+
end - start, what));
109109
ret rv;
110110
}
111111

0 commit comments

Comments
 (0)