Skip to content

Commit

Permalink
libC kconfig: default to PICOLIBC for NATIVE_LIBRARY IF POSIX_API
Browse files Browse the repository at this point in the history
When building with the POSIX_API we cannot use the host libC.
So to make it easier for users, let's just default to PICOBLIC
in that case,
while we continue defaulting to the host library in other cases
so users can use the Linux APIs for whatever test functionality
they want.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
  • Loading branch information
aescolar committed Oct 12, 2023
1 parent 5cf6218 commit f2a0e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ menu "C Library"

choice LIBC_IMPLEMENTATION
prompt "C Library Implementation"
default EXTERNAL_LIBC if NATIVE_BUILD
default EXTERNAL_LIBC if NATIVE_BUILD && !(POSIX_API && NATIVE_LIBRARY)
default PICOLIBC
default NEWLIB_LIBC if REQUIRES_FULL_LIBC
default MINIMAL_LIBC
Expand Down

0 comments on commit f2a0e6d

Please sign in to comment.