File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ pub(crate) fn build_backend(
4343
4444 cmd. arg ( "--release" ) ;
4545
46+ cmd. arg ( "-Zno-embed-metadata" ) ;
47+
4648 eprintln ! ( "[BUILD] rustc_codegen_cranelift" ) ;
4749 crate :: utils:: spawn_and_wait ( cmd) ;
4850
Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ fn build_clif_sysroot_for_triple(
242242 build_cmd. arg ( "--release" ) ;
243243 build_cmd. arg ( "--features" ) . arg ( "backtrace panic-unwind" ) ;
244244 build_cmd. arg ( format ! ( "-Zroot-dir={}" , STDLIB_SRC . to_path( dirs) . display( ) ) ) ;
245+ build_cmd. arg ( "-Zno-embed-metadata" ) ;
245246 build_cmd. env ( "CARGO_PROFILE_RELEASE_DEBUG" , "true" ) ;
246247 build_cmd. env ( "__CARGO_DEFAULT_LIB_METADATA" , "cg_clif" ) ;
247248 if compiler. triple . contains ( "apple" ) {
@@ -256,7 +257,7 @@ fn build_clif_sysroot_for_triple(
256257 for entry in fs:: read_dir ( build_dir. join ( "deps" ) ) . unwrap ( ) {
257258 let entry = entry. unwrap ( ) ;
258259 if let Some ( ext) = entry. path ( ) . extension ( ) {
259- if ext == "rmeta" || ext == " d" || ext == "dSYM" || ext == "clif" {
260+ if ext == "d" || ext == "dSYM" || ext == "clif" {
260261 continue ;
261262 }
262263 } else {
You can’t perform that action at this time.
0 commit comments