-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: override C++ allocation functions by Rust implementation
Previously, the overriding implementations were defined in a C++ source file compiled and linked by the use of `cc`. It didn't really work because their symbols weren't exported by the final cdylib file. This commit works around the issue by re-implementing them in Rust code. This is a sketchy hack at best since it makes assumptions about the target environment's C++ mangling scheme and calling conventions. This might be made unnecessary by [rust-lang/rfcs#2771][1]. [1]: rust-lang/rfcs#2771
- Loading branch information
Showing
6 changed files
with
144 additions
and
98 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters