[libc-commits] [PATCH] D119464: [libc][obvious] only include vector with malloc
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Feb 10 11:17:39 PST 2022
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG03731ed39300: [libc][obvious] only include vector with malloc (authored by michaelrj).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119464/new/
https://reviews.llvm.org/D119464
Files:
libc/src/__support/CPP/CMakeLists.txt
libc/test/utils/CPP/CMakeLists.txt
Index: libc/test/utils/CPP/CMakeLists.txt
===================================================================
--- libc/test/utils/CPP/CMakeLists.txt
+++ libc/test/utils/CPP/CMakeLists.txt
@@ -40,12 +40,14 @@
libc.src.__support.CPP.standalone_cpp
)
-add_libc_unittest(
- vector_test
- SUITE
- libc_cpp_utils_unittests
- SRCS
- vector_test.cpp
- DEPENDS
- libc.src.__support.CPP.vector
-)
+if(LLVM_LIBC_INCLUDE_SCUDO OR NOT LLVM_LIBC_FULL_BUILD)
+ add_libc_unittest(
+ vector_test
+ SUITE
+ libc_cpp_utils_unittests
+ SRCS
+ vector_test.cpp
+ DEPENDS
+ libc.src.__support.CPP.vector
+ )
+endif()
Index: libc/src/__support/CPP/CMakeLists.txt
===================================================================
--- libc/src/__support/CPP/CMakeLists.txt
+++ libc/src/__support/CPP/CMakeLists.txt
@@ -12,10 +12,12 @@
TypeTraits.h
)
-add_header_library(
- vector
- HDRS
- vector.h
- DEPENDS
- libc.include.stdlib
-)
+if(LLVM_LIBC_INCLUDE_SCUDO OR NOT LLVM_LIBC_FULL_BUILD)
+ add_header_library(
+ vector
+ HDRS
+ vector.h
+ DEPENDS
+ libc.include.stdlib
+ )
+endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119464.407615.patch
Type: text/x-patch
Size: 1148 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220210/84321f20/attachment.bin>
More information about the libc-commits
mailing list