@@ -1057,6 +1057,8 @@ options! {CodegenOptions, CodegenSetter, basic_codegen_options,
1057
1057
"`-C save-temps` might not produce all requested temporary products \
1058
1058
when incremental compilation is enabled.") ] ,
1059
1059
"save all temporary output files during compilation" ) ,
1060
+ relro_level: Option <RelroLevel > = ( None , parse_relro_level, [ TRACKED ] ,
1061
+ "choose which RELRO level to use" ) ,
1060
1062
rpath: bool = ( false , parse_bool, [ UNTRACKED ] ,
1061
1063
"set rpath values in libs/exes" ) ,
1062
1064
overflow_checks: Option <bool > = ( None , parse_opt_bool, [ TRACKED ] ,
@@ -1281,8 +1283,6 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
1281
1283
"extra arguments to prepend to the linker invocation (space separated)" ) ,
1282
1284
profile: bool = ( false , parse_bool, [ TRACKED ] ,
1283
1285
"insert profiling code" ) ,
1284
- relro_level: Option <RelroLevel > = ( None , parse_relro_level, [ TRACKED ] ,
1285
- "choose which RELRO level to use" ) ,
1286
1286
nll: bool = ( false , parse_bool, [ UNTRACKED ] ,
1287
1287
"run the non-lexical lifetimes MIR pass" ) ,
1288
1288
nll_dump_cause: bool = ( false , parse_bool, [ UNTRACKED ] ,
@@ -2928,7 +2928,7 @@ mod tests {
2928
2928
assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
2929
2929
2930
2930
opts = reference. clone ( ) ;
2931
- opts. debugging_opts . relro_level = Some ( RelroLevel :: Full ) ;
2931
+ opts. cg . relro_level = Some ( RelroLevel :: Full ) ;
2932
2932
assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
2933
2933
}
2934
2934
}
0 commit comments