File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 20
20
21
21
export RUSTFLAGS=' -Zalways-encode-mir -Cpanic=abort -Cdebuginfo=2 -Zcodegen-backend=' $( pwd) ' /target/' $channel ' /librustc_codegen_cranelift.' $dylib_ext ' --sysroot ' $( pwd) ' /build_sysroot/sysroot'
22
22
RUSTC=" rustc $RUSTFLAGS -L crate=target/out --out-dir target/out"
23
- export RUST_LOG =warn # display metadata load errors
23
+ export RUSTC_LOG =warn # display metadata load errors
Original file line number Diff line number Diff line change @@ -90,7 +90,12 @@ pub fn write_metadata<'a, 'gcx>(
90
90
DeflateEncoder :: new ( & mut compressed, Compression :: fast ( ) )
91
91
. write_all ( & metadata. raw_data ) . unwrap ( ) ;
92
92
93
- artifact. declare_with ( ".rustc" , faerie:: Decl :: section ( faerie:: SectionKind :: Data ) , compressed) . unwrap ( ) ;
93
+ artifact. declare ( ".rustc" , faerie:: Decl :: section ( faerie:: SectionKind :: Data ) ) . unwrap ( ) ;
94
+ artifact. define_with_symbols ( ".rustc" , compressed, {
95
+ let mut map = std:: collections:: BTreeMap :: new ( ) ;
96
+ map. insert ( rustc:: middle:: exported_symbols:: metadata_symbol_name ( tcx) , 0 ) ;
97
+ map
98
+ } ) . unwrap ( ) ;
94
99
95
100
metadata
96
101
}
You can’t perform that action at this time.
0 commit comments