mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:24:54 +08:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user