[libc][fix] Fix test after changing logic for generic stdio

Summary:
The previous patch accidentally broke the logic for adding the `generic`
subdirectory. Fix this so the CPU build works properly.
This commit is contained in:
Joseph Huber
2023-08-16 09:29:29 -05:00
parent 1e573f378c
commit 0f386e693b

View File

@@ -20,10 +20,11 @@ endfunction(add_stdio_entrypoint_object)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
elseif(NOT LIBC_TARGET_ARCHITECTURE_IS_GPU)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/generic)
endif()
if(NOT LIBC_TARGET_ARCHITECTURE_IS_GPU)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/generic)
endif()
add_subdirectory(printf_core)
add_subdirectory(scanf_core)