From c05a483ba4251589b713a1231fb6ad4c75cebbaa Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Thu, 28 Dec 2023 14:29:27 +0100 Subject: [PATCH] lib posix: Allow building the POSIX_API library without the host libC In theory one may want to build the POSIX compability shim with a different C library than one provided with Zephyr, so let's not prevent it. Signed-off-by: Alberto Escolar Piedras --- lib/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index c2abdd9559..7a0ee04e4a 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -6,6 +6,8 @@ add_compile_options($) add_subdirectory(crc) if(NOT CONFIG_EXTERNAL_LIBC) add_subdirectory(libc) +endif() +if(NOT CONFIG_NATIVE_LIBC) add_subdirectory(posix) endif() add_subdirectory_ifdef(CONFIG_CPP cpp)