Skip to content

Commit 23ad117

Browse files
aescolarcfriedt
authored andcommitted
Revert "lib: support linking to POSIX API with 3rd-party libc"
This reverts commit 6342aa3. This commit should never have been merged. Apart from the fact that this change was rejected in previous review, this change is wrong, for 2 reasons: 1. The POSIX_API (POSIX compatibility shim) cannot be built if the host libC is used. 2. The Zephyr libC CMake files were guarded so they would not be dragged when CONFIG_EXTERNAL_LIBC was selected. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent e8ba19e commit 23ad117

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
add_compile_options($<TARGET_PROPERTY:compiler,warning_shadow_variables>)
55

66
add_subdirectory(crc)
7-
if(NOT CONFIG_NATIVE_LIBC)
7+
if(NOT CONFIG_EXTERNAL_LIBC)
88
add_subdirectory(libc)
9-
endif()
109
add_subdirectory(posix)
10+
endif()
1111
add_subdirectory_ifdef(CONFIG_CPP cpp)
1212
add_subdirectory(hash)
1313
add_subdirectory(heap)

0 commit comments

Comments
 (0)