File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ option(LIBUNWIND_ENABLE_THREADS "Build libunwind with threading support." ON)
63
63
option (LIBUNWIND_WEAK_PTHREAD_LIB "Use weak references to refer to pthread functions." OFF )
64
64
option (LIBUNWIND_USE_COMPILER_RT "Use compiler-rt instead of libgcc" OFF )
65
65
option (LIBUNWIND_INCLUDE_DOCS "Build the libunwind documentation." ${LLVM_INCLUDE_DOCS} )
66
+ option (LIBUNWIND_INCLUDE_TESTS "Build the libunwind tests." ${LLVM_INCLUDE_TESTS} )
66
67
option (LIBUNWIND_IS_BAREMETAL "Build libunwind for baremetal targets." OFF )
67
68
option (LIBUNWIND_USE_FRAME_HEADER_CACHE "Cache frame headers for unwinding. Requires locking dl_iterate_phdr." OFF )
68
69
option (LIBUNWIND_REMEMBER_HEAP_ALLOC "Use heap instead of the stack for .cfi_remember_state." OFF )
@@ -344,6 +345,6 @@ if (LIBUNWIND_INCLUDE_DOCS)
344
345
add_subdirectory (docs )
345
346
endif ()
346
347
347
- if (EXISTS ${LLVM_CMAKE_PATH} )
348
+ if (LIBUNWIND_INCLUDE_TESTS AND EXISTS ${LLVM_CMAKE_PATH} )
348
349
add_subdirectory (test )
349
350
endif ()
You can’t perform that action at this time.
0 commit comments