Skip to content

Commit 91db3ea

Browse files
committed
Fix the paths of globals not being mangled.
Affects globals in C.
1 parent 7af247f commit 91db3ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bindgen/library.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,8 @@ impl Library {
443443
.for_all_items_mut(|x| x.mangle_paths(&monomorphs));
444444
self.typedefs
445445
.for_all_items_mut(|x| x.mangle_paths(&monomorphs));
446+
self.globals
447+
.for_all_items_mut(|x| x.ty.mangle_paths(&monomorphs));
446448
for x in &mut self.functions {
447449
x.mangle_paths(&monomorphs);
448450
}

0 commit comments

Comments
 (0)