[libc-commits] [libc] [libc] Generate a stub for libpthread.a (PR #200908)
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Mon Jun 15 23:10:39 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")
----------------
kaladron wrote:
I agree that it's cleaner if it works! It's another case where I worry that we mean posix when we say Linux, but that'll be a different cleanup one day and we're already far down that hole.
https://github.com/llvm/llvm-project/pull/200908
More information about the libc-commits
mailing list