diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index 077bf70d679..e5a614bacee 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -1,8 +1,22 @@ // -*- rust -*- fn main(vec[str] args) -> () { + log "This is the rust 'self-hosted' compiler."; log "The one written in rust."; log "It does nothing yet, it's a placeholder."; log "You want rustboot, the compiler next door."; + + auto i = 0; + for (str filename in args) { + if (i > 0) { + auto br = std._io.new_buf_reader(filename); + log "opened file: " + filename; + for (u8 b in br.read()) { + log b; + } + } + i += 1; + } + }