summaryrefslogtreecommitdiff
path: root/libc/startup
diff options
context:
space:
mode:
authorSiva Chandra Reddy <sivachandra@google.com>2023-01-31 05:31:18 +0000
committerSiva Chandra Reddy <sivachandra@google.com>2023-01-31 21:45:08 +0000
commitb875defc55bd4c2f3fc0572c84aead61c2a48d27 (patch)
tree2c24d756649f42bb43f52b03ac8b1fee0c167662 /libc/startup
parent3cd96a7309f67ab3b91ddcbd7e6d2ba9b714aba7 (diff)
downloadllvm-b875defc55bd4c2f3fc0572c84aead61c2a48d27.tar.gz
[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
Diffstat (limited to 'libc/startup')
-rw-r--r--libc/startup/linux/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/startup/linux/CMakeLists.txt b/libc/startup/linux/CMakeLists.txt
index f043ec54950a..5b044b92406a 100644
--- a/libc/startup/linux/CMakeLists.txt
+++ b/libc/startup/linux/CMakeLists.txt
@@ -92,5 +92,5 @@ foreach(target IN LISTS startup_components)
get_target_property(startup_object ${fq_target_name} STARTUP_OBJECT)
install(FILES ${startup_object}
DESTINATION ${CMAKE_INSTALL_LIBDIR}
- COMPONENT ${LIBC_COMPONENT})
+ COMPONENT libc)
endforeach()