We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44ca656 commit a50bcc0Copy full SHA for a50bcc0
libc/src/stdlib/CMakeLists.txt
@@ -418,15 +418,23 @@ else()
418
libc.src.string.memory_utils.inline_memcpy
419
libc.src.string.memory_utils.inline_memset
420
)
421
- add_entrypoint_object(
422
- malloc
423
- SRCS
424
- freelist_malloc.cpp
425
- HDRS
426
- malloc.h
427
- DEPENDS
428
- .freelist_heap
429
- )
+ # Only add malloc in full build mode. Use the system malloc in overlay mode.
+ if(LLVM_LIBC_FULL_BUILD)
+ add_entrypoint_object(
+ malloc
+ SRCS
+ freelist_malloc.cpp
+ HDRS
+ malloc.h
+ DEPENDS
430
+ .freelist_heap
431
+ )
432
+ else()
433
+ add_entrypoint_external(
434
435
436
+ endif()
437
+
438
add_entrypoint_external(
439
free
440
0 commit comments