Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions libc/baselibc/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,11 @@ pkg.cflags:
pkg.cflags.BASELIBC_DEBUG_MALLOC:
- -DDEBUG_MALLOC

pkg.ign_files.BASELIBC_NO_MEMCPY:
- memcpy.c

pkg.ign_files.BASELIBC_NO_MEMSET:
- memset.c

pkg.lflags.!MCU_NATIVE:
- -umain
14 changes: 14 additions & 0 deletions libc/baselibc/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,17 @@ syscfg.defs:
Set to 1 to enable extra debugging for malloc/free calls.
This will e.g. assert on double-free.
value: 0

BASELIBC_NO_MEMCPY:
description: >
Set to 1 to disable baselibc version of memcpy and let compiler
provide it's own which may be more efficient or user code
can have custom one.
value: 0

BASELIBC_NO_MEMSET:
description: >
Set to 1 to disable baselibc version of memset and let compiler
provide it's own which may be more efficient or user code
can have custom one.
value: 0
Loading