[libcxx-commits] [PATCH] D96342: [libunwind][cmake] Add an option to enable/disable tests
Kristina Bessonova via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Feb 9 07:32:38 PST 2021
krisb created this revision.
krisb added reviewers: libunwind, ldionne.
Herald added subscribers: libcxx-commits, mgorny.
Herald added a project: libunwind.
Herald added 1 blocking reviewer(s): libunwind.
krisb requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D96342
Files:
libunwind/CMakeLists.txt
Index: libunwind/CMakeLists.txt
===================================================================
--- libunwind/CMakeLists.txt
+++ libunwind/CMakeLists.txt
@@ -63,6 +63,7 @@
option(LIBUNWIND_WEAK_PTHREAD_LIB "Use weak references to refer to pthread functions." OFF)
option(LIBUNWIND_USE_COMPILER_RT "Use compiler-rt instead of libgcc" OFF)
option(LIBUNWIND_INCLUDE_DOCS "Build the libunwind documentation." ${LLVM_INCLUDE_DOCS})
+option(LIBUNWIND_INCLUDE_TESTS "Build the libunwind tests." ${LLVM_INCLUDE_TESTS})
option(LIBUNWIND_IS_BAREMETAL "Build libunwind for baremetal targets." OFF)
option(LIBUNWIND_USE_FRAME_HEADER_CACHE "Cache frame headers for unwinding. Requires locking dl_iterate_phdr." OFF)
option(LIBUNWIND_REMEMBER_HEAP_ALLOC "Use heap instead of the stack for .cfi_remember_state." OFF)
@@ -344,6 +345,6 @@
add_subdirectory(docs)
endif()
-if (EXISTS ${LLVM_CMAKE_PATH})
+if (LIBUNWIND_INCLUDE_TESTS AND EXISTS ${LLVM_CMAKE_PATH})
add_subdirectory(test)
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96342.322387.patch
Type: text/x-patch
Size: 996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210209/29a25531/attachment.bin>
More information about the libcxx-commits
mailing list