@@ -733,8 +733,7 @@ pub struct TargetOptions {
733
733
pub lld_flavor : LldFlavor ,
734
734
735
735
/// 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 ,
738
737
/// Objects to link before and after all other object code.
739
738
pub pre_link_objects : CrtObjects ,
740
739
pub post_link_objects : CrtObjects ,
@@ -997,7 +996,6 @@ impl Default for TargetOptions {
997
996
linker : option_env ! ( "CFG_DEFAULT_LINKER" ) . map ( |s| s. to_string ( ) ) ,
998
997
lld_flavor : LldFlavor :: Ld ,
999
998
pre_link_args : LinkArgs :: new ( ) ,
1000
- pre_link_args_crt : LinkArgs :: new ( ) ,
1001
999
post_link_args : LinkArgs :: new ( ) ,
1002
1000
link_script : None ,
1003
1001
asm_args : Vec :: new ( ) ,
@@ -1397,7 +1395,6 @@ impl Target {
1397
1395
key ! ( post_link_objects_fallback, link_objects) ;
1398
1396
key ! ( crt_objects_fallback, crt_objects_fallback) ?;
1399
1397
key ! ( pre_link_args, link_args) ;
1400
- key ! ( pre_link_args_crt, link_args) ;
1401
1398
key ! ( late_link_args, link_args) ;
1402
1399
key ! ( late_link_args_dynamic, link_args) ;
1403
1400
key ! ( late_link_args_static, link_args) ;
@@ -1629,7 +1626,6 @@ impl ToJson for Target {
1629
1626
target_option_val ! ( post_link_objects_fallback) ;
1630
1627
target_option_val ! ( crt_objects_fallback) ;
1631
1628
target_option_val ! ( link_args - pre_link_args) ;
1632
- target_option_val ! ( link_args - pre_link_args_crt) ;
1633
1629
target_option_val ! ( link_args - late_link_args) ;
1634
1630
target_option_val ! ( link_args - late_link_args_dynamic) ;
1635
1631
target_option_val ! ( link_args - late_link_args_static) ;
0 commit comments