File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,12 @@ message(STATUS "Using libunwind testing configuration: ${LIBUNWIND_TEST_CONFIG}"
8282set (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+
8591if (NOT LIBUNWIND_ENABLE_SHARED AND NOT LIBUNWIND_ENABLE_STATIC)
8692 message (FATAL_ERROR "libunwind must be built as either a shared or static library." )
8793endif ()
You can’t perform that action at this time.
0 commit comments