Error Building Libc with check-lldb-api target

Having issues when doing ninja check-lldb-api on macOS. Issue seems to be mixing of the host libraries and the built libraries. Started with the projects clang, lldb, and runtime libc++. With the cmake script I got the error shows below.

-- Performing Test LIBC_CC_SUPPORTS_NOSTDLIBINC - Success CMake Error at /Users/laura/llvm-project/libc/cmake/modules/LLVMLibCObjectRules.cmake:265 (target_link_libraries): Target "libc.src.errno.errno" of type UTILITY may not be linked into another target. One may link only to INTERFACE, OBJECT, STATIC or SHARED libraries, or to executables with the ENABLE_EXPORTS property set. 

(continues with similar errors)

unalias python export SDKROOT=$(xcrun --sdk macosx --show-sdk-path) cmake -B /Users/laura/llvm-project/lldb/build -G Ninja \ -C /Users/laura/llvm-project/lldb/cmake/caches/Apple-lldb-macOS.cmake \ -DLLVM_ENABLE_PROJECTS="clang;lldb;lld" \ -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind;libc" \ -DLLDB_ENFORCE_STRICT_TEST_REQUIREMENTS=ON \ -DPython3_EXECUTABLE:FILEPATH=/Users/laura/bin/python \ -DPython3_LIBRARIES=/usr/local/Frameworks/Python.framework/Versions/3.10/bin/python3.10 \ -DLLDB_BUILD_FRAMEWORK=ON \ -DLLDB_USE_SYSTEM_DEBUGSERVER=ON \ -DPython_EXECUTABLE=/usr/local/bin/python \ -DLIBCXXABI_ENABLE_STATIC_UNWINDER=ON \ -DLLVM_ENABLE_LIBCXX=ON \ -DLIBC_COMPILE_OPTIONS_DEFAULT="-DLIBC_COPT_USE_C_ASSERT" \ -DLIBC_WNO_ERROR=ON \ /Users/laura/llvm-project/llvm