@@ -577,16 +577,16 @@ pub struct TargetOptions {
577577 pub pre_link_objects_exe : Vec < String > , // ... when linking an executable, unconditionally
578578 pub pre_link_objects_exe_crt : Vec < String > , // ... when linking an executable with a bundled crt
579579 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
582582 /// 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
585585 /// 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
588588 /// dependencies are statically linked.
589- pub late_link_args_static : LinkArgs ,
589+ pub link_args_static : LinkArgs ,
590590 /// Objects to link after all others, always found within the
591591 /// sysroot folder.
592592 pub post_link_objects : Vec < String > , // ... unconditionally
@@ -857,9 +857,9 @@ impl Default for TargetOptions {
857857 pre_link_objects_dll : Vec :: new ( ) ,
858858 post_link_objects : Vec :: new ( ) ,
859859 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 ( ) ,
863863 link_env : Vec :: new ( ) ,
864864 link_env_remove : Vec :: new ( ) ,
865865 archive_format : "gnu" . to_string ( ) ,
@@ -1135,9 +1135,9 @@ impl Target {
11351135 key ! ( pre_link_objects_exe, list) ;
11361136 key ! ( pre_link_objects_exe_crt, list) ;
11371137 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) ;
11411141 key ! ( post_link_objects, list) ;
11421142 key ! ( post_link_objects_crt, list) ;
11431143 key ! ( post_link_args, link_args) ;
@@ -1362,9 +1362,9 @@ impl ToJson for Target {
13621362 target_option_val ! ( pre_link_objects_exe) ;
13631363 target_option_val ! ( pre_link_objects_exe_crt) ;
13641364 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 ) ;
13681368 target_option_val ! ( post_link_objects) ;
13691369 target_option_val ! ( post_link_objects_crt) ;
13701370 target_option_val ! ( link_args - post_link_args) ;
0 commit comments