@@ -180,7 +180,6 @@ debugging_opts!(
180
180
GC ,
181
181
PRINT_LINK_ARGS ,
182
182
PRINT_LLVM_PASSES ,
183
- LTO ,
184
183
AST_JSON ,
185
184
AST_JSON_NOEXPAND ,
186
185
LS ,
@@ -219,7 +218,6 @@ pub fn debugging_opts_map() -> Vec<(&'static str, &'static str, u64)> {
219
218
( "print-llvm-passes" ,
220
219
"Prints the llvm optimization passes being run" ,
221
220
PRINT_LLVM_PASSES ) ,
222
- ( "lto" , "Perform LLVM link-time optimizations" , LTO ) ,
223
221
( "ast-json" , "Print the AST as JSON and halt" , AST_JSON ) ,
224
222
( "ast-json-noexpand" , "Print the pre-expansion AST as JSON and halt" , AST_JSON_NOEXPAND ) ,
225
223
( "ls" , "List the symbols defined by a library crate" , LS ) ,
@@ -353,6 +351,8 @@ cgoptions!(
353
351
"system linker to link outputs with" ) ,
354
352
link_args: Vec <String > = ( Vec :: new( ) , parse_list,
355
353
"extra arguments to pass to the linker (space separated)" ) ,
354
+ lto: bool = ( false , parse_bool,
355
+ "perform LLVM link-time optimizations" ) ,
356
356
target_cpu: String = ( "generic" . to_string( ) , parse_string,
357
357
"select target processor (llc -mcpu=help for details)" ) ,
358
358
target_feature: String = ( "" . to_string( ) , parse_string,
0 commit comments