Commit Graph

2 Commits

Author SHA1 Message Date
UebelAndre 500c8bd478
Minor cleanup (#2357) 2023-12-27 11:13:16 +00:00
Daniel Wagner-Hall aa4b3a862a
Set up default allocator_library and global_allocator_library (#2172)
This makes C++ depending on Rust Just Work out of the box, while still
giving people
hooks to customise these if they need.

In particular, this means we can centrally manage and update our default
definition of these symbols, rather than require people to vendor them
and keep their copies up to date as new versions of Rust come out.

We provide this as a best-effort tool which we hope will be useful to
people, and will attempt to maintain the C++ code included here, but
make not guarantees about its universality or correctness. If you need
more specific behaviours, you should set your own `allocator_library`
and `global_allocator_library` attributes on your toolchains.
2023-09-29 14:45:38 +01:00