mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-14 01:31:50 +01:00
d315b4bb34
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")
|