[libc-commits] [libc] 0f386e6 - [libc][fix] Fix test after changing logic for generic stdio
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Aug 16 07:30:48 PDT 2023
Author: Joseph Huber
Date: 2023-08-16T09:29:29-05:00
New Revision: 0f386e693b5b189a12167b30cde9ed2c8540be7c
URL: https://github.com/llvm/llvm-project/commit/0f386e693b5b189a12167b30cde9ed2c8540be7c
DIFF: https://github.com/llvm/llvm-project/commit/0f386e693b5b189a12167b30cde9ed2c8540be7c.diff
LOG: [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.
Added:
Modified:
libc/src/stdio/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/src/stdio/CMakeLists.txt b/libc/src/stdio/CMakeLists.txt
index a3548e7004e679..247244ab310b9b 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)
More information about the libc-commits
mailing list