Skip to content

Commit

Permalink
Trim the mangled name from nm on at least some platforms that require it
Browse files Browse the repository at this point in the history
  • Loading branch information
plicease committed Jan 31, 2015
1 parent ce62f03 commit c732569
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@
*.o
*.dll
*.so
*.bundle
*.dylib
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Revision history for Perl module FFI::Platypus::Lang::CPP

- Trim the mangled name from nm on at least some platforms
that require it.

0.02 Jan 30, 2015
- Documentation fixes

Expand Down
1 change: 1 addition & 0 deletions lib/FFI/Platypus/Lang/CPP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ sub mangler
my $cpp_symbol = `c++filt $c_symbol`;
chomp $cpp_symbol;
return if $c_symbol eq $cpp_symbol;
$c_symbol =~ s{^_}{} if $^O =~ /^(darwin)$/;
$mangle{$cpp_symbol} = $c_symbol;
},
} ],
Expand Down

0 comments on commit c732569

Please sign in to comment.