]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_trans/back/linker.rs
Add an --output option for specifying an error emitter
[rust.git] / src / librustc_trans / back / linker.rs
index 90ebf364367a0c66388a8423e70b74fef16e3198..2450414d8b67e6407abbafb6415236da19480c07 100644 (file)
@@ -149,8 +149,8 @@ fn optimize(&mut self) {
 
         // GNU-style linkers support optimization with -O. GNU ld doesn't
         // need a numeric argument, but other linkers do.
-        if self.sess.opts.optimize == config::Default ||
-           self.sess.opts.optimize == config::Aggressive {
+        if self.sess.opts.optimize == config::OptLevel::Default ||
+           self.sess.opts.optimize == config::OptLevel::Aggressive {
             self.cmd.arg("-Wl,-O1");
         }
     }