Index: libc/utils/UnitTest/CMakeLists.txt =================================================================== --- libc/utils/UnitTest/CMakeLists.txt +++ libc/utils/UnitTest/CMakeLists.txt @@ -5,4 +5,4 @@ LINK_COMPONENTS Support ) target_include_directories(LibcUnitTest PUBLIC ${LIBC_SOURCE_DIR}) -add_dependencies(LibcUnitTest standalone_cpp) +add_dependencies(LibcUnitTest standalone_cpp libc_test_utils) Index: libc/utils/testutils/CMakeLists.txt =================================================================== --- libc/utils/testutils/CMakeLists.txt +++ libc/utils/testutils/CMakeLists.txt @@ -1,8 +1,10 @@ -add_library( +if(CMAKE_HOST_UNIX) + set(EFFile ExecuteFunctionUnix.cpp) +endif() + +add_llvm_library( libc_test_utils + ${EFFile} ExecuteFunction.h + LINK_COMPONENTS Support ) - -if(CMAKE_HOST_UNIX) - target_sources(libc_test_utils PRIVATE ExecuteFunctionUnix.cpp) -endif()