File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change
1
+ # 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 ()
5
+
6
+ # Then process OS-specific subdirectory
1
7
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /${LIBC_TARGET_OS} )
2
8
add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /${LIBC_TARGET_OS} )
3
9
add_object_library (
@@ -8,10 +14,7 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
8
14
)
9
15
endif ()
10
16
11
- if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /${LIBC_TARGET_ARCHITECTURE} )
12
- add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /${LIBC_TARGET_ARCHITECTURE} )
13
- endif ()
14
-
17
+ message (STATUS "Target arch is ${LIBC_TARGET_ARCHITECTURE} " )
15
18
16
19
add_entrypoint_object (
17
20
setjmp
@@ -44,4 +47,4 @@ if (TARGET libc.src.setjmp.sigsetjmp_epilogue)
44
47
DEPENDS
45
48
.${LIBC_TARGET_ARCHITECTURE}.sigsetjmp
46
49
)
47
- endif ()
50
+ endif ()
You can’t perform that action at this time.
0 commit comments