[all-commits] [llvm/llvm-project] b875de: [libc] Build two different static archives libc.a ...
Siva Chandra via All-commits
all-commits at lists.llvm.org
Tue Jan 31 13:45:43 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b875defc55bd4c2f3fc0572c84aead61c2a48d27
https://github.com/llvm/llvm-project/commit/b875defc55bd4c2f3fc0572c84aead61c2a48d27
Author: Siva Chandra Reddy <sivachandra at google.com>
Date: 2023-01-31 (Tue, 31 Jan 2023)
Changed paths:
M libc/CMakeLists.txt
M libc/lib/CMakeLists.txt
M libc/startup/linux/CMakeLists.txt
Log Message:
-----------
[libc] Build two different static archives libc.a and libm.a under full build.
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`.
Reviewed By: jhuber6
Differential Revision: https://reviews.llvm.org/D143005
More information about the All-commits
mailing list