From 0f386e693b5b189a12167b30cde9ed2c8540be7c Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Wed, 16 Aug 2023 09:29:29 -0500 Subject: [PATCH] [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. --- libc/src/stdio/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libc/src/stdio/CMakeLists.txt b/libc/src/stdio/CMakeLists.txt index a3548e7004e6..247244ab310b 100644 --- a/libc/src/stdio/CMakeLists.txt +++ b/libc/src/stdio/CMakeLists.txt @@ -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)