[libc-commits] [libc] [libc] Add baremetal minor archive support. (PR #203015)

Simi Pallipurath via libc-commits libc-commits at lists.llvm.org
Thu Jun 11 02:50:04 PDT 2026


================
@@ -1,15 +1,40 @@
+set(libc_subarchive_entrypoints "")
+if(ENABLE_LLVM_LIBC_MINOR_VARIANT)
+  if(NOT LIBC_TARGET_OS_IS_BAREMETAL)
----------------
simpal01 wrote:

The functionality is more useful in a bare-metal environment, where it is common to have many variants of the same library. 

I discussed this with Peter Smith, and he agrees that the feature provides the most value in a bare-metal context. However, the principle of ordering libraries to preferentially select specific implementations is broadly applicable and is not unique to bare-metal systems. Therefore, I have removed the restrictions that previously limited this functionality on bare-metal targets.

https://github.com/llvm/llvm-project/pull/203015


More information about the libc-commits mailing list