Skip to content

Commit c332115

Browse files
committed
Allow -g and -O options to be specified multiple times at command line.
1 parent bd4b984 commit c332115

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/session/config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -786,8 +786,8 @@ pub fn rustc_short_optgroups() -> Vec<RustcOptGroup> {
786786
opt::multi("", "print", "Comma separated list of compiler information to \
787787
print on stdout",
788788
"[crate-name|file-names|sysroot]"),
789-
opt::flag("g", "", "Equivalent to -C debuginfo=2"),
790-
opt::flag("O", "", "Equivalent to -C opt-level=2"),
789+
opt::multi("g", "", "Equivalent to -C debuginfo=2"),
790+
opt::multi("O", "", "Equivalent to -C opt-level=2"),
791791
opt::opt("o", "", "Write output to <filename>", "FILENAME"),
792792
opt::opt("", "out-dir", "Write output to compiler-chosen filename \
793793
in <dir>", "DIR"),

0 commit comments

Comments
 (0)