Closed
Description
When compiling the crates as staticlib
, the compiler generates the symbols based on GlobalAlloc
; but it doesn't when asking for an rlib
.
I assume it does it only when it needs to link a "final" product (executable, static library, etc.), but I haven't look how it actually works in rustc yet. I think it is reasonable to generate them in an rlib
which overrides the allocator, but maybe they have a reason not to...