@@ -422,22 +422,20 @@ pub struct TargetOptions {
422
422
/// Linker to invoke
423
423
pub linker : Option < String > ,
424
424
425
- /// Linker arguments that are passed *before* any user-defined libraries.
426
- pub pre_link_args : LinkArgs , // ... unconditionally
427
- pub pre_link_args_crt : LinkArgs , // ... when linking with a bundled crt
425
+ /// Linker arguments that are unconditionally passed *before* any
426
+ /// user-defined libraries.
427
+ pub pre_link_args : LinkArgs ,
428
428
/// Objects to link before all others, always found within the
429
429
/// sysroot folder.
430
- pub pre_link_objects_exe : Vec < String > , // ... when linking an executable, unconditionally
431
- pub pre_link_objects_exe_crt : Vec < String > , // ... when linking an executable with a bundled crt
430
+ pub pre_link_objects_exe : Vec < String > , // ... when linking an executable
432
431
pub pre_link_objects_dll : Vec < String > , // ... when linking a dylib
433
432
/// Linker arguments that are unconditionally passed after any
434
433
/// user-defined but before post_link_objects. Standard platform
435
434
/// libraries that should be always be linked to, usually go here.
436
435
pub late_link_args : LinkArgs ,
437
436
/// Objects to link after all others, always found within the
438
437
/// sysroot folder.
439
- pub post_link_objects : Vec < String > , // ... unconditionally
440
- pub post_link_objects_crt : Vec < String > , // ... when linking with a bundled crt
438
+ pub post_link_objects : Vec < String > ,
441
439
/// Linker arguments that are unconditionally passed *after* any
442
440
/// user-defined libraries.
443
441
pub post_link_args : LinkArgs ,
@@ -637,7 +635,6 @@ impl Default for TargetOptions {
637
635
is_builtin : false ,
638
636
linker : option_env ! ( "CFG_DEFAULT_LINKER" ) . map ( |s| s. to_string ( ) ) ,
639
637
pre_link_args : LinkArgs :: new ( ) ,
640
- pre_link_args_crt : LinkArgs :: new ( ) ,
641
638
post_link_args : LinkArgs :: new ( ) ,
642
639
asm_args : Vec :: new ( ) ,
643
640
cpu : "generic" . to_string ( ) ,
@@ -671,10 +668,8 @@ impl Default for TargetOptions {
671
668
position_independent_executables : false ,
672
669
relro_level : RelroLevel :: None ,
673
670
pre_link_objects_exe : Vec :: new ( ) ,
674
- pre_link_objects_exe_crt : Vec :: new ( ) ,
675
671
pre_link_objects_dll : Vec :: new ( ) ,
676
672
post_link_objects : Vec :: new ( ) ,
677
- post_link_objects_crt : Vec :: new ( ) ,
678
673
late_link_args : LinkArgs :: new ( ) ,
679
674
link_env : Vec :: new ( ) ,
680
675
archive_format : "gnu" . to_string ( ) ,
@@ -893,13 +888,10 @@ impl Target {
893
888
key ! ( is_builtin, bool ) ;
894
889
key ! ( linker, optional) ;
895
890
key ! ( pre_link_args, link_args) ;
896
- key ! ( pre_link_args_crt, link_args) ;
897
891
key ! ( pre_link_objects_exe, list) ;
898
- key ! ( pre_link_objects_exe_crt, list) ;
899
892
key ! ( pre_link_objects_dll, list) ;
900
893
key ! ( late_link_args, link_args) ;
901
894
key ! ( post_link_objects, list) ;
902
- key ! ( post_link_objects_crt, list) ;
903
895
key ! ( post_link_args, link_args) ;
904
896
key ! ( link_env, env) ;
905
897
key ! ( asm_args, list) ;
@@ -1101,13 +1093,10 @@ impl ToJson for Target {
1101
1093
target_option_val ! ( is_builtin) ;
1102
1094
target_option_val ! ( linker) ;
1103
1095
target_option_val ! ( link_args - pre_link_args) ;
1104
- target_option_val ! ( link_args - pre_link_args_crt) ;
1105
1096
target_option_val ! ( pre_link_objects_exe) ;
1106
- target_option_val ! ( pre_link_objects_exe_crt) ;
1107
1097
target_option_val ! ( pre_link_objects_dll) ;
1108
1098
target_option_val ! ( link_args - late_link_args) ;
1109
1099
target_option_val ! ( post_link_objects) ;
1110
- target_option_val ! ( post_link_objects_crt) ;
1111
1100
target_option_val ! ( link_args - post_link_args) ;
1112
1101
target_option_val ! ( env - link_env) ;
1113
1102
target_option_val ! ( asm_args) ;
0 commit comments