about summary refs log tree commit diff
path: root/library/std/src/sys/pal/xous/mod.rs
diff options
context:
space:
mode:
authorSean Cross <sean@xobs.io>2023-12-29 17:54:26 +0800
committerSean Cross <sean@xobs.io>2024-01-13 09:13:56 -0800
commitef4f722835ccf11dd002606e3ad4adb342ea4435 (patch)
tree897625c897c3c0284fe56bd9a64982df158b0d1a /library/std/src/sys/pal/xous/mod.rs
parent007bf7a05a834ace889589e3e73ab6bc91f6f491 (diff)
downloadrust-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