Skip to content

Commit

Permalink
Modifications to support symbol mangling on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmartin82 committed Dec 4, 2024
1 parent cf23940 commit dd19e34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ fn main() {
item.push_str(item_info.name);
match self.symbols.contains(&item) {
true => {
let mut prefix = self.prefix.clone();
let mut prefix = String::from("");
#[cfg(target_os = "macos")]
prefix.push('_');
prefix.push_str(&self.prefix);
prefix.push_str(item_info.name);
Some(prefix)
}
Expand Down

0 comments on commit dd19e34

Please sign in to comment.