Skip to content

Commit 51a4a54

Browse files
committed
Missing libunwind CMake option
1 parent eb619c8 commit 51a4a54

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libunwind/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ message(STATUS "Using libunwind testing configuration: ${LIBUNWIND_TEST_CONFIG}"
8282
set(LIBUNWIND_TEST_PARAMS "" CACHE STRING
8383
"A list of parameters to run the Lit test suite with.")
8484

85+
set(LIBUNWIND_SUPPORTED_C_LIBRARIES system llvm-libc)
86+
set(LIBUNWIND_LIBC "system" CACHE STRING "Specify C library to use. Supported values are ${LIBUNWIND_SUPPORTED_C_LIBRARIES}.")
87+
if (NOT "${LIBUNWIND_LIBC}" IN_LIST LIBUNWIND_SUPPORTED_C_LIBRARIES)
88+
message(FATAL_ERROR "Unsupported C library: '${LIBUNWIND_CXX_ABI}'. Supported values are ${LIBUNWIND_SUPPORTED_C_LIBRARIES}.")
89+
endif()
90+
8591
if (NOT LIBUNWIND_ENABLE_SHARED AND NOT LIBUNWIND_ENABLE_STATIC)
8692
message(FATAL_ERROR "libunwind must be built as either a shared or static library.")
8793
endif()

0 commit comments

Comments
 (0)