Skip to content

Commit

Permalink
Only run dsymutil on macos.
Browse files Browse the repository at this point in the history
I have this approach of bundling dsymutil. If there was
a library that handled bundling DWARF info then this wouldn't be needed.
  • Loading branch information
WINSDK committed Apr 21, 2024
1 parent 1c3cca6 commit c18a214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debugvault/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ pub fn macho_dwarf(obj: &object::File, path: &Path) -> Result<Dwarf, dwarf::Erro
.join(path.file_name().unwrap());

if !opt_dsym.is_file() {
#[cfg(target_arch = "x86_64")]
#[cfg(all(target_arch = "x86_64", target_os = "macos"))]
let dsymutil_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("bin/dsymutil_x86_64");
#[cfg(target_arch = "aarch64")]
#[cfg(all(target_arch = "aarch64", target_os = "macos"))]
let dsymutil_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("bin/dsymutil_aarch64");

if dsymutil_path.exists() {
Expand Down

0 comments on commit c18a214

Please sign in to comment.