Use -O instead of --opt-level 3 (closes #194)

This commit is contained in:
Arcterus 2014-12-03 10:12:43 -08:00
parent 68fd0971d0
commit db48d109e7
2 changed files with 5 additions and 6 deletions

View file

@ -19,7 +19,7 @@ TESTDIR := $(BASEDIR)/test
TEMPDIR := $(BASEDIR)/tmp
# Flags
RUSTCFLAGS := --opt-level=3 -L $(BUILDDIR)/
RUSTCFLAGS := -O -L $(BUILDDIR)/
RMFLAGS :=
# Handle config setup

View file

@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
#![feature(macro_rules)]
#![feature(if_let, macro_rules)]
extern crate getopts;
extern crate libc;
@ -114,10 +114,9 @@ pub fn uumain(args: Vec<String>) -> int {
return 0;
}
}
match remove(matches.free, force, interactive, one_fs, preserve_root,
recursive, dir, verbose) {
Ok(()) => ( /* pass */ ),
Err(e) => return e
if let Err(e) = remove(matches.free, force, interactive, one_fs, preserve_root,
recursive, dir, verbose) {
return e;
}
}