@@ -1057,6 +1057,8 @@ options! {CodegenOptions, CodegenSetter, basic_codegen_options,
10571057 "`-C save-temps` might not produce all requested temporary products \
10581058 when incremental compilation is enabled.") ] ,
10591059 "save all temporary output files during compilation" ) ,
1060+ relro_level: Option <RelroLevel > = ( None , parse_relro_level, [ TRACKED ] ,
1061+ "choose which RELRO level to use" ) ,
10601062 rpath: bool = ( false , parse_bool, [ UNTRACKED ] ,
10611063 "set rpath values in libs/exes" ) ,
10621064 overflow_checks: Option <bool > = ( None , parse_opt_bool, [ TRACKED ] ,
@@ -1281,8 +1283,6 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
12811283 "extra arguments to prepend to the linker invocation (space separated)" ) ,
12821284 profile: bool = ( false , parse_bool, [ TRACKED ] ,
12831285 "insert profiling code" ) ,
1284- relro_level: Option <RelroLevel > = ( None , parse_relro_level, [ TRACKED ] ,
1285- "choose which RELRO level to use" ) ,
12861286 nll: bool = ( false , parse_bool, [ UNTRACKED ] ,
12871287 "run the non-lexical lifetimes MIR pass" ) ,
12881288 nll_dump_cause: bool = ( false , parse_bool, [ UNTRACKED ] ,
@@ -2928,7 +2928,7 @@ mod tests {
29282928 assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
29292929
29302930 opts = reference. clone ( ) ;
2931- opts. debugging_opts . relro_level = Some ( RelroLevel :: Full ) ;
2931+ opts. cg . relro_level = Some ( RelroLevel :: Full ) ;
29322932 assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
29332933 }
29342934}
0 commit comments