@@ -41,7 +41,7 @@ pub struct TargetInfo {
41
41
/// Extra flags to pass to `rustdoc`, see `env_args`.
42
42
pub rustdocflags : Vec < String > ,
43
43
/// Remove this when it hits stable (1.44)
44
- pub supports_bitcode_in_rlib : Option < bool > ,
44
+ pub supports_embed_bitcode : Option < bool > ,
45
45
}
46
46
47
47
/// Kind of each file generated by a Unit, part of `FileType`.
@@ -111,10 +111,10 @@ impl TargetInfo {
111
111
. args ( & rustflags)
112
112
. env_remove ( "RUSTC_LOG" ) ;
113
113
114
- let mut bitcode_in_rlib_test = process. clone ( ) ;
115
- bitcode_in_rlib_test . arg ( "-Cbitcode-in-rlib " ) ;
116
- let supports_bitcode_in_rlib = match kind {
117
- CompileKind :: Host => Some ( rustc. cached_output ( & bitcode_in_rlib_test ) . is_ok ( ) ) ,
114
+ let mut embed_bitcode_test = process. clone ( ) ;
115
+ embed_bitcode_test . arg ( "-Cembed-bitcode " ) ;
116
+ let supports_embed_bitcode = match kind {
117
+ CompileKind :: Host => Some ( rustc. cached_output ( & embed_bitcode_test ) . is_ok ( ) ) ,
118
118
_ => None ,
119
119
} ;
120
120
@@ -202,7 +202,7 @@ impl TargetInfo {
202
202
"RUSTDOCFLAGS" ,
203
203
) ?,
204
204
cfg,
205
- supports_bitcode_in_rlib ,
205
+ supports_embed_bitcode ,
206
206
} )
207
207
}
208
208
0 commit comments