File tree 2 files changed +3
-11
lines changed
2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ if(NOT DEFINED SNMALLOC_ONLY_HEADER_LIBRARY)
189
189
endif ()
190
190
if (SNMALLOC_CI_BUILD OR (${CMAKE_BUILD_TYPE} MATCHES "Debug" ))
191
191
# Get better stack traces in CI and Debug.
192
- target_link_libraries (snmalloc_lib INTERFACE "-rdynamic" )
192
+ # target_link_libraries(snmalloc_lib INTERFACE "-rdynamic") #not supported in wasi
193
193
endif ()
194
194
195
195
if (SNMALLOC_OPTIMISE_FOR_CURRENT_MACHINE)
@@ -254,14 +254,6 @@ if(NOT DEFINED SNMALLOC_ONLY_HEADER_LIBRARY)
254
254
SNMALLOC_STATIC_LIBRARY_PREFIX=${SNMALLOC_STATIC_LIBRARY_PREFIX} )
255
255
endif ()
256
256
257
- if (NOT WIN32 )
258
- set (SHARED_FILES src/override/new.cc src/override/malloc.cc)
259
- add_shim(snmallocshim SHARED ${SHARED_FILES} )
260
- add_shim(snmallocshim-1mib SHARED ${SHARED_FILES} )
261
- target_compile_definitions (snmallocshim-1mib PRIVATE IS_ADDRESS_SPACE_CONSTRAINED)
262
- # Build a shim with some settings from oe.
263
- add_shim(snmallocshim-oe SHARED ${SHARED_FILES} )
264
- endif ()
265
257
266
258
267
259
endif ()
Original file line number Diff line number Diff line change 7
7
#include < array>
8
8
#ifdef WASM_ENV // wasi-libc/libc-bottom-half/headers/public/__header_*
9
9
extern " C" void *memset (void *dst, int c, size_t n);
10
- extern " C" [[noreturn]] void abort ();
10
+ extern " C" [[noreturn]] void w_abort ();
11
11
12
12
// this pal uses wasi libc bottom half & wasm linear memory (wlm)
13
13
namespace snmalloc
@@ -45,7 +45,7 @@ namespace snmalloc
45
45
[[noreturn]] static void error (const char * const str)
46
46
{
47
47
UNUSED (str);
48
- abort ();
48
+ w_abort ();
49
49
}
50
50
51
51
static std::pair<void *, size_t >
You can’t perform that action at this time.
0 commit comments