@@ -733,8 +733,7 @@ pub struct TargetOptions {
733733 pub lld_flavor : LldFlavor ,
734734
735735 /// Linker arguments that are passed *before* any user-defined libraries.
736- pub pre_link_args : LinkArgs , // ... unconditionally
737- pub pre_link_args_crt : LinkArgs , // ... when linking with a bundled crt
736+ pub pre_link_args : LinkArgs ,
738737 /// Objects to link before and after all other object code.
739738 pub pre_link_objects : CrtObjects ,
740739 pub post_link_objects : CrtObjects ,
@@ -997,7 +996,6 @@ impl Default for TargetOptions {
997996 linker : option_env ! ( "CFG_DEFAULT_LINKER" ) . map ( |s| s. to_string ( ) ) ,
998997 lld_flavor : LldFlavor :: Ld ,
999998 pre_link_args : LinkArgs :: new ( ) ,
1000- pre_link_args_crt : LinkArgs :: new ( ) ,
1001999 post_link_args : LinkArgs :: new ( ) ,
10021000 link_script : None ,
10031001 asm_args : Vec :: new ( ) ,
@@ -1397,7 +1395,6 @@ impl Target {
13971395 key ! ( post_link_objects_fallback, link_objects) ;
13981396 key ! ( crt_objects_fallback, crt_objects_fallback) ?;
13991397 key ! ( pre_link_args, link_args) ;
1400- key ! ( pre_link_args_crt, link_args) ;
14011398 key ! ( late_link_args, link_args) ;
14021399 key ! ( late_link_args_dynamic, link_args) ;
14031400 key ! ( late_link_args_static, link_args) ;
@@ -1629,7 +1626,6 @@ impl ToJson for Target {
16291626 target_option_val ! ( post_link_objects_fallback) ;
16301627 target_option_val ! ( crt_objects_fallback) ;
16311628 target_option_val ! ( link_args - pre_link_args) ;
1632- target_option_val ! ( link_args - pre_link_args_crt) ;
16331629 target_option_val ! ( link_args - late_link_args) ;
16341630 target_option_val ! ( link_args - late_link_args_dynamic) ;
16351631 target_option_val ! ( link_args - late_link_args_static) ;
0 commit comments