libc: malloc: store the global heap in a fixed region of virtual memory

This commit is contained in:
2026-05-31 17:22:47 +01:00
parent b773439aa1
commit 1b7c3b1b0d
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -30,5 +30,5 @@ sysroot_add_library(
HEADER_DIR /usr/include
LIB_DIR /usr/lib)
target_compile_definitions(libc-malloc PRIVATE ENABLE_GLOBAL_HEAP=1)
target_compile_definitions(libc-malloc PRIVATE LIBC_STATIC=1 ENABLE_GLOBAL_HEAP=1)
target_link_libraries(libc-malloc libc-core libmagenta)