Skip to content

Commit e561cf7

Browse files
committed
[WIP] Use m4b/faerie#74
1 parent b802e9d commit e561cf7

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

Cargo.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,8 @@ object = "0.11.0"
3939
#[patch."https://github.com/gimli-rs/gimli.git"]
4040
#gimli = { path = "../" }
4141

42+
[patch.crates-io]
43+
faerie = { git = "https://github.com/bjorn3/faerie.git", branch = "custom_sections_test" }
44+
4245
[profile.dev.overrides."*"]
4346
opt-level = 3

src/debuginfo.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl<'a, 'tcx: 'a> DebugContext<'tcx> {
191191
let _: Result<()> = sections.for_each_mut(|id, section| {
192192
if !section.writer.slice().is_empty() {
193193
artifact
194-
.declare_with(id.name(), Decl::debug_section(), section.writer.take())
194+
.declare_with(id.name(), Decl::section(SectionKind::Debug), section.writer.take())
195195
.unwrap();
196196
}
197197
Ok(())

src/metadata.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub fn write_metadata<'a, 'gcx>(
9191
DeflateEncoder::new(&mut compressed, Compression::fast())
9292
.write_all(&metadata.raw_data).unwrap();
9393

94-
artifact.declare_with(".rustc", faerie::Decl::debug_section(), compressed).unwrap();
94+
artifact.declare_with(".rustc", faerie::Decl::section(faerie::SectionKind::Data), compressed).unwrap();
9595

9696
metadata
9797
}

0 commit comments

Comments
 (0)