[libc-commits] [libc] [libc] Fix setjmp build order. (PR #144917)
via libc-commits
libc-commits at lists.llvm.org
Thu Jun 19 08:46:12 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: None (lntue)
<details>
<summary>Changes</summary>
Fix build order issue from https://github.com/llvm/llvm-project/pull/139555.
---
Full diff: https://github.com/llvm/llvm-project/pull/144917.diff
1 Files Affected:
- (modified) libc/src/setjmp/CMakeLists.txt (+4-3)
``````````diff
diff --git a/libc/src/setjmp/CMakeLists.txt b/libc/src/setjmp/CMakeLists.txt
index 50c827254da65..8b8e74f0955eb 100644
--- a/libc/src/setjmp/CMakeLists.txt
+++ b/libc/src/setjmp/CMakeLists.txt
@@ -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
``````````
</details>
https://github.com/llvm/llvm-project/pull/144917
More information about the libc-commits
mailing list