aboutsummaryrefslogtreecommitdiff
path: root/libcxx
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2023-07-17 00:35:04 +0300
committerMartin Storsjö <martin@martin.st>2023-07-19 11:31:53 +0300
commit7506cb3c926a6d585b04a1425294666ef4e97a86 (patch)
tree0e0925083fe47aa38823bf95bc2a14bac672d796 /libcxx
parentf9e54a5c0f2998ecf0339b1daab5dab0edf9f447 (diff)
downloadllvm-7506cb3c926a6d585b04a1425294666ef4e97a86.zip
llvm-7506cb3c926a6d585b04a1425294666ef4e97a86.tar.gz
llvm-7506cb3c926a6d585b04a1425294666ef4e97a86.tar.bz2
[libcxx] Link to fewer MSVC CRT libraries
The library msvcrt.lib pulls in ucrt.lib and vcruntime.lib anyway, there's no need to manually link against the individual dependencies. This matches how the tests link against libraries - they only link against msvcrt and msvcprt, not directly against ucrt and vcruntime. Differential Revision: https://reviews.llvm.org/D155555
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/CMakeLists.txt2
1 files changed, 0 insertions, 2 deletions
diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt
index 86bc1eb..90eb60c 100644
--- a/libcxx/CMakeLists.txt
+++ b/libcxx/CMakeLists.txt
@@ -688,8 +688,6 @@ function(cxx_link_system_libraries target)
set(LIB_SUFFIX "")
endif()
- target_link_libraries(${target} PRIVATE ucrt${LIB_SUFFIX}) # Universal C runtime
- target_link_libraries(${target} PRIVATE vcruntime${LIB_SUFFIX}) # C++ runtime
target_link_libraries(${target} PRIVATE msvcrt${LIB_SUFFIX}) # C runtime startup files
target_link_libraries(${target} PRIVATE msvcprt${LIB_SUFFIX}) # C++ standard library. Required for exception_ptr internals.
# Required for standards-complaint wide character formatting functions