@@ -25,7 +25,7 @@ fn with_deps() {
2525 . file ( "src/main.rs" , "extern crate bar; fn main() {}" )
2626 . build ( ) ;
2727 p. cargo ( "build -v --release" )
28- . with_stderr_contains ( "[..]`rustc[..]--crate-name bar[..]-Clinker -plugin-lto[..]`" )
28+ . with_stderr_contains ( "[..]`rustc[..]--crate-name bar[..]-C linker -plugin-lto[..]`" )
2929 . with_stderr_contains ( "[..]`rustc[..]--crate-name test[..]-C lto[..]`" )
3030 . run ( ) ;
3131}
@@ -83,7 +83,7 @@ fn build_dep_not_ltod() {
8383 . file ( "src/main.rs" , "fn main() {}" )
8484 . build ( ) ;
8585 p. cargo ( "build -v --release" )
86- . with_stderr_contains ( "[..]`rustc[..]--crate-name bar[..]-Cembed -bitcode=no[..]`" )
86+ . with_stderr_contains ( "[..]`rustc[..]--crate-name bar[..]-C embed -bitcode=no[..]`" )
8787 . with_stderr_contains ( "[..]`rustc[..]--crate-name test[..]-C lto[..]`" )
8888 . run ( ) ;
8989}
@@ -188,30 +188,32 @@ fn complicated() {
188188 p. cargo ( "build -v --release" )
189189 // normal deps and their transitive dependencies do not need object
190190 // code, so they should have linker-plugin-lto specified
191- . with_stderr_contains ( "[..]`rustc[..]--crate-name dep_normal2 [..]-Clinker-plugin-lto[..]`" )
192- . with_stderr_contains ( "[..]`rustc[..]--crate-name dep_normal [..]-Clinker-plugin-lto[..]`" )
191+ . with_stderr_contains (
192+ "[..]`rustc[..]--crate-name dep_normal2 [..]-C linker-plugin-lto[..]`" ,
193+ )
194+ . with_stderr_contains ( "[..]`rustc[..]--crate-name dep_normal [..]-C linker-plugin-lto[..]`" )
193195 // build dependencies and their transitive deps don't need any bitcode,
194196 // so embedding should be turned off
195- . with_stderr_contains ( "[..]`rustc[..]--crate-name dep_build2 [..]-Cembed -bitcode=no[..]`" )
196- . with_stderr_contains ( "[..]`rustc[..]--crate-name dep_build [..]-Cembed -bitcode=no[..]`" )
197+ . with_stderr_contains ( "[..]`rustc[..]--crate-name dep_build2 [..]-C embed -bitcode=no[..]`" )
198+ . with_stderr_contains ( "[..]`rustc[..]--crate-name dep_build [..]-C embed -bitcode=no[..]`" )
197199 . with_stderr_contains (
198- "[..]`rustc[..]--crate-name build_script_build [..]-Cembed -bitcode=no[..]`" ,
200+ "[..]`rustc[..]--crate-name build_script_build [..]-C embed -bitcode=no[..]`" ,
199201 )
200202 // proc macro deps are the same as build deps here
201203 . with_stderr_contains (
202- "[..]`rustc[..]--crate-name dep_proc_macro2 [..]-Cembed -bitcode=no[..]`" ,
204+ "[..]`rustc[..]--crate-name dep_proc_macro2 [..]-C embed -bitcode=no[..]`" ,
203205 )
204206 . with_stderr_contains (
205- "[..]`rustc[..]--crate-name dep_proc_macro [..]-Cembed -bitcode=no[..]`" ,
207+ "[..]`rustc[..]--crate-name dep_proc_macro [..]-C embed -bitcode=no[..]`" ,
206208 )
207209 . with_stderr_contains ( "[..]`rustc[..]--crate-name test [..]--crate-type bin[..]-C lto[..]`" )
208210 . with_stderr_contains (
209211 "[..]`rustc[..]--crate-name test [..]--crate-type cdylib[..]-C lto[..]`" ,
210212 )
211213 . with_stderr_contains ( "[..]`rustc[..]--crate-name dep_shared [..]`" )
212214 . with_stderr_does_not_contain ( "[..]--crate-name dep_shared[..]-C lto[..]" )
213- . with_stderr_does_not_contain ( "[..]--crate-name dep_shared[..]-Clinker -plugin-lto[..]" )
214- . with_stderr_does_not_contain ( "[..]--crate-name dep_shared[..]-Cembed -bitcode[..]" )
215+ . with_stderr_does_not_contain ( "[..]--crate-name dep_shared[..]-C linker -plugin-lto[..]" )
216+ . with_stderr_does_not_contain ( "[..]--crate-name dep_shared[..]-C embed -bitcode[..]" )
215217 . run ( ) ;
216218}
217219
@@ -252,9 +254,9 @@ fn off_in_manifest_works() {
252254[DOWNLOADING] [..]
253255[DOWNLOADED] [..]
254256[COMPILING] bar v0.0.1
255- [RUNNING] `rustc --crate-name bar [..]--crate-type lib [..]-Cembed -bitcode=no[..]
257+ [RUNNING] `rustc --crate-name bar [..]--crate-type lib [..]-C embed -bitcode=no[..]
256258[COMPILING] test [..]
257- [RUNNING] `rustc --crate-name test [..]--crate-type lib [..]-Cembed -bitcode=no[..]
259+ [RUNNING] `rustc --crate-name test [..]--crate-type lib [..]-C embed -bitcode=no[..]
258260[RUNNING] `rustc --crate-name test src/main.rs [..]--crate-type bin [..]-C lto=off[..]
259261[FINISHED] [..]
260262" ,
@@ -283,7 +285,7 @@ fn between_builds() {
283285 . with_stderr (
284286 "\
285287 [COMPILING] test [..]
286- [RUNNING] `rustc [..]--crate-type lib[..]-Clinker -plugin-lto[..]
288+ [RUNNING] `rustc [..]--crate-type lib[..]-C linker -plugin-lto[..]
287289[FINISHED] [..]
288290" ,
289291 )
@@ -447,9 +449,9 @@ fn verify_lto(output: &Output, krate: &str, krate_info: &str, expected_lto: Lto)
447449 }
448450 } else if line. contains ( "-C lto" ) {
449451 Lto :: Run ( None )
450- } else if line. contains ( "-Clinker -plugin-lto" ) {
452+ } else if line. contains ( "-C linker -plugin-lto" ) {
451453 Lto :: OnlyBitcode
452- } else if line. contains ( "-Cembed -bitcode=no" ) {
454+ } else if line. contains ( "-C embed -bitcode=no" ) {
453455 Lto :: OnlyObject
454456 } else {
455457 Lto :: ObjectAndBitcode
@@ -491,8 +493,8 @@ fn cdylib_and_rlib() {
491493[FRESH] registry-shared v0.0.1
492494[FRESH] bar v0.0.0 [..]
493495[COMPILING] foo [..]
494- [RUNNING] `rustc --crate-name foo [..]-Cembed -bitcode=no --test[..]
495- [RUNNING] `rustc --crate-name a [..]-Cembed -bitcode=no --test[..]
496+ [RUNNING] `rustc --crate-name foo [..]-C embed -bitcode=no --test[..]
497+ [RUNNING] `rustc --crate-name a [..]-C embed -bitcode=no --test[..]
496498[FINISHED] [..]
497499[RUNNING] [..]
498500[RUNNING] [..]
@@ -515,8 +517,8 @@ fn cdylib_and_rlib() {
515517 [FRESH] registry v0.0.1
516518[FRESH] registry-shared v0.0.1
517519[COMPILING] bar [..]
518- [RUNNING] `rustc --crate-name bar [..]-Cembed -bitcode=no --test[..]
519- [RUNNING] `rustc --crate-name b [..]-Cembed -bitcode=no --test[..]
520+ [RUNNING] `rustc --crate-name bar [..]-C embed -bitcode=no --test[..]
521+ [RUNNING] `rustc --crate-name b [..]-C embed -bitcode=no --test[..]
520522[FINISHED] [..]
521523[RUNNING] [..]
522524[RUNNING] [..]
@@ -547,8 +549,8 @@ fn dylib() {
547549[FRESH] registry-shared v0.0.1
548550[FRESH] bar v0.0.0 [..]
549551[COMPILING] foo [..]
550- [RUNNING] `rustc --crate-name foo [..]-Cembed -bitcode=no --test[..]
551- [RUNNING] `rustc --crate-name a [..]-Cembed -bitcode=no --test[..]
552+ [RUNNING] `rustc --crate-name foo [..]-C embed -bitcode=no --test[..]
553+ [RUNNING] `rustc --crate-name a [..]-C embed -bitcode=no --test[..]
552554[FINISHED] [..]
553555[RUNNING] [..]
554556[RUNNING] [..]
@@ -560,9 +562,9 @@ fn dylib() {
560562 "\
561563 [COMPILING] registry-shared v0.0.1
562564[FRESH] registry v0.0.1
563- [RUNNING] `rustc --crate-name registry_shared [..]-Cembed -bitcode=no[..]
565+ [RUNNING] `rustc --crate-name registry_shared [..]-C embed -bitcode=no[..]
564566[COMPILING] bar [..]
565- [RUNNING] `rustc --crate-name bar [..]--crate-type dylib [..]-Cembed -bitcode=no[..]
567+ [RUNNING] `rustc --crate-name bar [..]--crate-type dylib [..]-C embed -bitcode=no[..]
566568[FINISHED] [..]
567569" ,
568570 )
@@ -573,8 +575,8 @@ fn dylib() {
573575 [FRESH] registry-shared v0.0.1
574576[FRESH] registry v0.0.1
575577[COMPILING] bar [..]
576- [RUNNING] `rustc --crate-name bar [..]-Cembed -bitcode=no --test[..]
577- [RUNNING] `rustc --crate-name b [..]-Cembed -bitcode=no --test[..]
578+ [RUNNING] `rustc --crate-name bar [..]-C embed -bitcode=no --test[..]
579+ [RUNNING] `rustc --crate-name b [..]-C embed -bitcode=no --test[..]
578580[FINISHED] [..]
579581[RUNNING] [..]
580582[RUNNING] [..]
@@ -625,7 +627,7 @@ fn test_profile() {
625627[COMPILING] bar v0.0.1
626628[RUNNING] `rustc --crate-name bar [..]crate-type lib[..]
627629[COMPILING] foo [..]
628- [RUNNING] `rustc --crate-name foo [..]--crate-type lib --emit=dep-info,metadata,link -Cembed -bitcode=no[..]
630+ [RUNNING] `rustc --crate-name foo [..]--crate-type lib --emit=dep-info,metadata,link -C embed -bitcode=no[..]
629631[RUNNING] `rustc --crate-name foo [..]--emit=dep-info,link -C lto=thin [..]--test[..]
630632[FINISHED] [..]
631633[RUNNING] [..]
@@ -678,8 +680,8 @@ fn dev_profile() {
678680[COMPILING] bar v0.0.1
679681[RUNNING] `rustc --crate-name bar [..]crate-type lib[..]
680682[COMPILING] foo [..]
681- [RUNNING] `rustc --crate-name foo [..]--crate-type lib --emit=dep-info,metadata,link -Clinker -plugin-lto [..]
682- [RUNNING] `rustc --crate-name foo [..]--emit=dep-info,link -Cembed -bitcode=no [..]--test[..]
683+ [RUNNING] `rustc --crate-name foo [..]--crate-type lib --emit=dep-info,metadata,link -C linker -plugin-lto [..]
684+ [RUNNING] `rustc --crate-name foo [..]--emit=dep-info,link -C embed -bitcode=no [..]--test[..]
683685[FINISHED] [..]
684686[RUNNING] [..]
685687[DOCTEST] foo
0 commit comments