mirror of
https://github.com/wiiu-env/wut.git
synced 2025-03-01 20:45:29 +01:00

This overwrites malloc and redirects it to alloc from default heap. Also sets __wut_heap_max_size to limit sbrk heap now that malloc no longer uses it.
10 lines
251 B
CMake
10 lines
251 B
CMake
cmake_minimum_required(VERSION 3.2)
|
|
project(wutmalloc C)
|
|
|
|
add_library(wutmalloc
|
|
wut_malloc.c)
|
|
target_include_directories(wutmalloc PRIVATE "${WUT_ROOT}/include")
|
|
|
|
install(TARGETS wutmalloc
|
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
|