@@ -577,16 +577,16 @@ pub struct TargetOptions {
577
577
pub pre_link_objects_exe : Vec < String > , // ... when linking an executable, unconditionally
578
578
pub pre_link_objects_exe_crt : Vec < String > , // ... when linking an executable with a bundled crt
579
579
pub pre_link_objects_dll : Vec < String > , // ... when linking a dylib
580
- /// Linker arguments that are unconditionally passed after any
581
- /// user-defined but before post_link_objects . Standard platform
580
+ /// Linker arguments that are unconditionally passed immediately after any
581
+ /// user-defined linker arguments (`-C link-args` and friends) . Standard platform
582
582
/// libraries that should be always be linked to, usually go here.
583
- pub late_link_args : LinkArgs ,
584
- /// Linker arguments used in addition to `late_link_args ` if at least one
583
+ pub link_args : LinkArgs ,
584
+ /// Linker arguments used in addition to `link_args ` if at least one
585
585
/// Rust dependency is dynamically linked.
586
- pub late_link_args_dynamic : LinkArgs ,
587
- /// Linker arguments used in addition to `late_link_args ` if aall Rust
586
+ pub link_args_dynamic : LinkArgs ,
587
+ /// Linker arguments used in addition to `link_args ` if aall Rust
588
588
/// dependencies are statically linked.
589
- pub late_link_args_static : LinkArgs ,
589
+ pub link_args_static : LinkArgs ,
590
590
/// Objects to link after all others, always found within the
591
591
/// sysroot folder.
592
592
pub post_link_objects : Vec < String > , // ... unconditionally
@@ -857,9 +857,9 @@ impl Default for TargetOptions {
857
857
pre_link_objects_dll : Vec :: new ( ) ,
858
858
post_link_objects : Vec :: new ( ) ,
859
859
post_link_objects_crt : Vec :: new ( ) ,
860
- late_link_args : LinkArgs :: new ( ) ,
861
- late_link_args_dynamic : LinkArgs :: new ( ) ,
862
- late_link_args_static : LinkArgs :: new ( ) ,
860
+ link_args : LinkArgs :: new ( ) ,
861
+ link_args_dynamic : LinkArgs :: new ( ) ,
862
+ link_args_static : LinkArgs :: new ( ) ,
863
863
link_env : Vec :: new ( ) ,
864
864
link_env_remove : Vec :: new ( ) ,
865
865
archive_format : "gnu" . to_string ( ) ,
@@ -1135,9 +1135,9 @@ impl Target {
1135
1135
key ! ( pre_link_objects_exe, list) ;
1136
1136
key ! ( pre_link_objects_exe_crt, list) ;
1137
1137
key ! ( pre_link_objects_dll, list) ;
1138
- key ! ( late_link_args , link_args) ;
1139
- key ! ( late_link_args_dynamic , link_args) ;
1140
- key ! ( late_link_args_static , link_args) ;
1138
+ key ! ( link_args , link_args) ;
1139
+ key ! ( link_args_dynamic , link_args) ;
1140
+ key ! ( link_args_static , link_args) ;
1141
1141
key ! ( post_link_objects, list) ;
1142
1142
key ! ( post_link_objects_crt, list) ;
1143
1143
key ! ( post_link_args, link_args) ;
@@ -1362,9 +1362,9 @@ impl ToJson for Target {
1362
1362
target_option_val ! ( pre_link_objects_exe) ;
1363
1363
target_option_val ! ( pre_link_objects_exe_crt) ;
1364
1364
target_option_val ! ( pre_link_objects_dll) ;
1365
- target_option_val ! ( link_args - late_link_args ) ;
1366
- target_option_val ! ( link_args - late_link_args_dynamic ) ;
1367
- target_option_val ! ( link_args - late_link_args_static ) ;
1365
+ target_option_val ! ( link_args - link_args ) ;
1366
+ target_option_val ! ( link_args - link_args_dynamic ) ;
1367
+ target_option_val ! ( link_args - link_args_static ) ;
1368
1368
target_option_val ! ( post_link_objects) ;
1369
1369
target_option_val ! ( post_link_objects_crt) ;
1370
1370
target_option_val ! ( link_args - post_link_args) ;
0 commit comments