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
17if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /${LIBC_TARGET_OS} )
28 add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /${LIBC_TARGET_OS} )
39 add_object_library(
@@ -8,10 +14,7 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
814 )
915endif ()
1016
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} " )
1518
1619add_entrypoint_object(
1720 setjmp
@@ -44,4 +47,4 @@ if (TARGET libc.src.setjmp.sigsetjmp_epilogue)
4447 DEPENDS
4548 .${LIBC_TARGET_ARCHITECTURE} .sigsetjmp
4649 )
47- endif ()
50+ endif ()
You can’t perform that action at this time.
0 commit comments