On Thu, May 19, 2011 at 9:31 PM, Erick Tryzelaar
<[email protected]> wrote:
> Rust is erroring out for me when it tries to compile stage2/glue.o.
The problem stemmed from the "-g" flag switching from optflag to
optopt. This patch fixes the problem:
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs
index 0ce20eb..879c53c 100644
--- a/src/comp/driver/rustc.rs
+++ b/src/comp/driver/rustc.rs
@@ -231,7 +231,7 @@ fn main(vec[str] args) {
optflag("ls"), optflag("parse-only"),
optflag("O"), optopt("OptLevel"),
optflag("shared"), optmulti("L"),
- optflag("S"), optflag("c"), optopt("o"), optopt("g"),
+ optflag("S"), optflag("c"), optopt("o"), optflag("g"),
optflag("save-temps"), optopt("sysroot"),
optflag("stats"),
optflag("time-passes"), optflag("time-llvm-passes"),
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev