Skip to content

Commit

Permalink
Fix the paths of globals not being mangled.
Browse files Browse the repository at this point in the history
Affects globals in C.
  • Loading branch information
flaviojs committed May 31, 2024
1 parent 7af247f commit 91db3ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bindgen/library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ impl Library {
.for_all_items_mut(|x| x.mangle_paths(&monomorphs));
self.typedefs
.for_all_items_mut(|x| x.mangle_paths(&monomorphs));
self.globals
.for_all_items_mut(|x| x.ty.mangle_paths(&monomorphs));
for x in &mut self.functions {
x.mangle_paths(&monomorphs);
}
Expand Down

0 comments on commit 91db3ea

Please sign in to comment.