@@ -422,26 +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
428
- /// Objects to link before all others, all except *_sys found within the
425
+ /// Linker arguments that are unconditionally passed *before* any
426
+ /// user-defined libraries.
427
+ pub pre_link_args : LinkArgs ,
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
432
- pub pre_link_objects_exe_crt_sys : Vec < String > , // ... when linking an executable with a bundled
433
- // crt, from the system library search path
430
+ pub pre_link_objects_exe : Vec < String > , // ... when linking an executable
434
431
pub pre_link_objects_dll : Vec < String > , // ... when linking a dylib
435
432
/// Linker arguments that are unconditionally passed after any
436
433
/// user-defined but before post_link_objects. Standard platform
437
434
/// libraries that should be always be linked to, usually go here.
438
435
pub late_link_args : LinkArgs ,
439
- /// Objects to link after all others, all except *_sys found within the
436
+ /// Objects to link after all others, always found within the
440
437
/// sysroot folder.
441
- pub post_link_objects : Vec < String > , // ... unconditionally
442
- pub post_link_objects_crt : Vec < String > , // ... when linking with a bundled crt
443
- pub post_link_objects_crt_sys : Vec < String > , // ... when linking with a bundled crt, from the
444
- // system library search path
438
+ pub post_link_objects : Vec < String > ,
445
439
/// Linker arguments that are unconditionally passed *after* any
446
440
/// user-defined libraries.
447
441
pub post_link_args : LinkArgs ,
@@ -641,7 +635,6 @@ impl Default for TargetOptions {
641
635
is_builtin : false ,
642
636
linker : option_env ! ( "CFG_DEFAULT_LINKER" ) . map ( |s| s. to_string ( ) ) ,
643
637
pre_link_args : LinkArgs :: new ( ) ,
644
- pre_link_args_crt : LinkArgs :: new ( ) ,
645
638
post_link_args : LinkArgs :: new ( ) ,
646
639
asm_args : Vec :: new ( ) ,
647
640
cpu : "generic" . to_string ( ) ,
@@ -675,12 +668,8 @@ impl Default for TargetOptions {
675
668
position_independent_executables : false ,
676
669
relro_level : RelroLevel :: None ,
677
670
pre_link_objects_exe : Vec :: new ( ) ,
678
- pre_link_objects_exe_crt : Vec :: new ( ) ,
679
- pre_link_objects_exe_crt_sys : Vec :: new ( ) ,
680
671
pre_link_objects_dll : Vec :: new ( ) ,
681
672
post_link_objects : Vec :: new ( ) ,
682
- post_link_objects_crt : Vec :: new ( ) ,
683
- post_link_objects_crt_sys : Vec :: new ( ) ,
684
673
late_link_args : LinkArgs :: new ( ) ,
685
674
link_env : Vec :: new ( ) ,
686
675
archive_format : "gnu" . to_string ( ) ,
@@ -899,15 +888,10 @@ impl Target {
899
888
key ! ( is_builtin, bool ) ;
900
889
key ! ( linker, optional) ;
901
890
key ! ( pre_link_args, link_args) ;
902
- key ! ( pre_link_args_crt, link_args) ;
903
891
key ! ( pre_link_objects_exe, list) ;
904
- key ! ( pre_link_objects_exe_crt, list) ;
905
- key ! ( pre_link_objects_exe_crt_sys, list) ;
906
892
key ! ( pre_link_objects_dll, list) ;
907
893
key ! ( late_link_args, link_args) ;
908
894
key ! ( post_link_objects, list) ;
909
- key ! ( post_link_objects_crt, list) ;
910
- key ! ( post_link_objects_crt_sys, list) ;
911
895
key ! ( post_link_args, link_args) ;
912
896
key ! ( link_env, env) ;
913
897
key ! ( asm_args, list) ;
@@ -1109,15 +1093,10 @@ impl ToJson for Target {
1109
1093
target_option_val ! ( is_builtin) ;
1110
1094
target_option_val ! ( linker) ;
1111
1095
target_option_val ! ( link_args - pre_link_args) ;
1112
- target_option_val ! ( link_args - pre_link_args_crt) ;
1113
1096
target_option_val ! ( pre_link_objects_exe) ;
1114
- target_option_val ! ( pre_link_objects_exe_crt) ;
1115
- target_option_val ! ( pre_link_objects_exe_crt_sys) ;
1116
1097
target_option_val ! ( pre_link_objects_dll) ;
1117
1098
target_option_val ! ( link_args - late_link_args) ;
1118
1099
target_option_val ! ( post_link_objects) ;
1119
- target_option_val ! ( post_link_objects_crt) ;
1120
- target_option_val ! ( post_link_objects_crt_sys) ;
1121
1100
target_option_val ! ( link_args - post_link_args) ;
1122
1101
target_option_val ! ( env - link_env) ;
1123
1102
target_option_val ! ( asm_args) ;
0 commit comments