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 129d67e commit c0d7f86Copy full SHA for c0d7f86
libc/baselibc/pkg.yml
@@ -34,6 +34,9 @@ pkg.init.BASELIBC_THREAD_SAFE_HEAP_ALLOCATION:
34
pkg.cflags:
35
- -fno-builtin-malloc
36
37
+pkg.cflags.BASELIBC_DEBUG_MALLOC:
38
+ - -DDEBUG_MALLOC
39
+
40
pkg.lflags:
41
- -specs=nosys.specs:
42
- -umain
libc/baselibc/syscfg.yml
@@ -41,3 +41,9 @@ syscfg.defs:
description: >
Set to 1 if project requires malloc/calloc/free to be thread safe.
43
value: 0
44
45
+ BASELIBC_DEBUG_MALLOC:
46
+ description: >
47
+ Set to 1 to enable extra debugging for malloc/free calls.
48
+ This will e.g. assert on double-free.
49
+ value: 0
0 commit comments