[libc-commits] [PATCH] D143005: [libc] Build two different static archives libc.a and libm.a under full build.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Jan 31 11:32:12 PST 2023


sivachandra created this revision.
sivachandra added reviewers: jhuber6, lntue, michaelrj.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
sivachandra requested review of this revision.

We currently put everything in one single archive libc.a which breaks in
certain situations where the compiler drivers expect libm.a also. With
this change, we separate out libc.a and libm.a functions as is done
conventionally and put them in two different static archives.

One will now have to build two targets, `libc` and `libm` which produce
`libc.a` and `libm.a` respectively. Under default build, one still builds only
one target named `libc` which produces `libllvmlibc.a`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143005

Files:
  libc/CMakeLists.txt
  libc/lib/CMakeLists.txt
  libc/startup/linux/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143005.493694.patch
Type: text/x-patch
Size: 3001 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230131/52522730/attachment.bin>


More information about the libc-commits mailing list