Skip to content

Commit

Permalink
Kconfig.zephyr: Add NATIVE_LIBC and NATIVE_LIBCPP
Browse files Browse the repository at this point in the history
These are set when building against the host C or C++ libraries. This
allows filtering tests that require use of a C library that sits atop
Zephyr OS APIs.

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard authored and aescolar committed Oct 25, 2023
1 parent 1e40199 commit be4b76f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Kconfig.zephyr
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,22 @@ config CODING_GUIDELINE_CHECK
Use available compiler flags to check coding guideline rules during
the build.

config NATIVE_BUILD
config NATIVE_LIBC
bool
select FULL_LIBC_SUPPORTED
select FULL_LIBCPP_SUPPORTED if CPP
help
Zephyr will use the host system C library.

config NATIVE_LIBCPP
bool
select FULL_LIBCPP_SUPPORTED
help
Zephyr will use the host system C++ library

config NATIVE_BUILD
bool
select NATIVE_LIBC if EXTERNAL_LIBC
select NATIVE_LIBCPP if EXTERNAL_LIBCPP
help
Zephyr will be built targeting the host system for debug and
development purposes.
Expand Down

0 comments on commit be4b76f

Please sign in to comment.