[libc] Fix setjmp build order. (#144917)

Fix build order issue from
https://github.com/llvm/llvm-project/pull/139555.
This commit is contained in:
lntue
2025-06-19 12:05:58 -04:00
committed by GitHub
parent 01d648a429
commit c1ac87b327

View File

@@ -1,7 +1,4 @@
# Process architecture-specific subdirectory FIRST to avoid missing targets.
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
endif()
# Then process OS-specific subdirectory
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
@@ -14,6 +11,10 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
)
endif()
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
endif()
add_entrypoint_object(
setjmp
ALIAS