Skip to content

Commit c1ac87b

Browse files
authored
[libc] Fix setjmp build order. (#144917)
Fix build order issue from #139555.
1 parent 01d648a commit c1ac87b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libc/src/setjmp/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
# Process architecture-specific subdirectory FIRST to avoid missing targets.
2-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
3-
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
4-
endif()
52

63
# Then process OS-specific subdirectory
74
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
@@ -14,6 +11,10 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
1411
)
1512
endif()
1613

14+
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
15+
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
16+
endif()
17+
1718
add_entrypoint_object(
1819
setjmp
1920
ALIAS

0 commit comments

Comments
 (0)