Disable je_* renaming for integration tests
The integration tests fail to build with musl because the je_*
declarations use __attribute__(nothrow), which doesn't match the
declarations in musl. When the je_* declarations are renamed
to remove the je_ suffix, they collide with the musl declarations
and fail with:
external/jemalloc_new/include/jemalloc/jemalloc.h:197:28: error: exception specification in declaration does not match previous declaration
void JEMALLOC_NOTHROW *je_malloc(size_t size)
^
external/jemalloc_new/include/jemalloc/jemalloc_rename.h:38:21: note: expanded from macro 'je_malloc'
^
external/musl/include/stdlib.h:42:7: note: previous declaration is here
void *malloc (size_t);
^
Set JEMALLOC_NO_RENAME for the integration tests so they use the
je_* names. This will also avoid the tests accidentally calling the
libc methods.
Bug: 190084016
Test: m USE_HOST_MUSL=true jemalloc_integrationtests_basic
Test: out/host/linux-x86/nativetest/jemalloc5_integrationtests/basic
Change-Id: Iddc7e0f9ecb688487484ed413ad8c81ce548cc5f
1 file changed