@@ -180,7 +180,6 @@ debugging_opts!(
180180 GC ,
181181 PRINT_LINK_ARGS ,
182182 PRINT_LLVM_PASSES ,
183- LTO ,
184183 AST_JSON ,
185184 AST_JSON_NOEXPAND ,
186185 LS ,
@@ -219,7 +218,6 @@ pub fn debugging_opts_map() -> Vec<(&'static str, &'static str, u64)> {
219218 ( "print-llvm-passes" ,
220219 "Prints the llvm optimization passes being run" ,
221220 PRINT_LLVM_PASSES ) ,
222- ( "lto" , "Perform LLVM link-time optimizations" , LTO ) ,
223221 ( "ast-json" , "Print the AST as JSON and halt" , AST_JSON ) ,
224222 ( "ast-json-noexpand" , "Print the pre-expansion AST as JSON and halt" , AST_JSON_NOEXPAND ) ,
225223 ( "ls" , "List the symbols defined by a library crate" , LS ) ,
@@ -353,6 +351,8 @@ cgoptions!(
353351 "system linker to link outputs with" ) ,
354352 link_args: Vec <String > = ( Vec :: new( ) , parse_list,
355353 "extra arguments to pass to the linker (space separated)" ) ,
354+ lto: bool = ( false , parse_bool,
355+ "perform LLVM link-time optimizations" ) ,
356356 target_cpu: String = ( "generic" . to_string( ) , parse_string,
357357 "select target processor (llc -mcpu=help for details)" ) ,
358358 target_feature: String = ( "" . to_string( ) , parse_string,
0 commit comments