diff options
| author | Sean Cross <sean@xobs.io> | 2023-12-29 17:54:26 +0800 |
|---|---|---|
| committer | Sean Cross <sean@xobs.io> | 2024-01-13 09:13:56 -0800 |
| commit | ef4f722835ccf11dd002606e3ad4adb342ea4435 (patch) | |
| tree | 897625c897c3c0284fe56bd9a64982df158b0d1a /library/std/src/sys/pal/xous/mod.rs | |
| parent | 007bf7a05a834ace889589e3e73ab6bc91f6f491 (diff) | |
| download | rust-ef4f722835ccf11dd002606e3ad4adb342ea4435.tar.gz rust-ef4f722835ccf11dd002606e3ad4adb342ea4435.zip | |
std: xous: share allocator symbol in tests
When using the testing framework, a second copy of libstd is built and linked. Use a global symbol for the `DLMALLOC` variable and mark it as `extern` when building as a test. This ensures we only have a single allocator even when running tests. Signed-off-by: Sean Cross <sean@xobs.io>
Diffstat (limited to 'library/std/src/sys/pal/xous/mod.rs')
0 files changed, 0 insertions, 0 deletions
