[libc-commits] [libc] [libc] Generate a stub for libpthread.a (PR #200908)
Alexey Samsonov via libc-commits
libc-commits at lists.llvm.org
Mon Jun 15 23:03:10 PDT 2026
================
@@ -56,6 +56,29 @@ foreach(archive IN ZIP_LISTS
endif()
endforeach()
+# Add empty archive libraries for compatibility with systems expecting certain
+# bits of libc to be located in separate files (e.g. libpthread).
+if(LLVM_LIBC_FULL_BUILD)
+ set(dummy_source "${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp")
----------------
vonosmas wrote:
I experimented a bit, and if we restrict the target OS to Linux, we can probably just use direct "ar cqs" invocation through custom command, as suggested by @frobtech . Updated this PR. @kaladron - LMK if you prefer that version instead!
https://github.com/llvm/llvm-project/pull/200908
More information about the libc-commits
mailing list