Changeset View
Changeset View
Standalone View
Standalone View
libcxxabi/src/CMakeLists.txt
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
else() | else() | ||||
if (LIBCXXABI_ENABLE_THREADS) | if (LIBCXXABI_ENABLE_THREADS) | ||||
add_library_flags_if(LIBCXXABI_HAS_PTHREAD_LIB pthread) | add_library_flags_if(LIBCXXABI_HAS_PTHREAD_LIB pthread) | ||||
endif() | endif() | ||||
add_library_flags_if(LIBCXXABI_HAS_C_LIB c) | add_library_flags_if(LIBCXXABI_HAS_C_LIB c) | ||||
endif() | endif() | ||||
if (LIBCXXABI_USE_COMPILER_RT) | |||||
find_compiler_rt_library(builtins LIBCXXABI_BUILTINS_LIBRARY) | |||||
list(APPEND LIBCXXABI_SHARED_LIBRARIES "${LIBCXXABI_BUILTINS_LIBRARY}") | |||||
endif () | |||||
if (LIBCXXABI_USE_LLVM_UNWINDER) | if (LIBCXXABI_USE_LLVM_UNWINDER) | ||||
# Prefer using the in-tree version of libunwind, either shared or static. If | # Prefer using the in-tree version of libunwind, either shared or static. If | ||||
# none are found fall back to using -lunwind. | # none are found fall back to using -lunwind. | ||||
# FIXME: Is it correct to prefer the static version of libunwind? | # FIXME: Is it correct to prefer the static version of libunwind? | ||||
if (NOT LIBCXXABI_STATICALLY_LINK_UNWINDER_IN_SHARED_LIBRARY AND (TARGET unwind_shared OR HAVE_LIBUNWIND)) | if (NOT LIBCXXABI_STATICALLY_LINK_UNWINDER_IN_SHARED_LIBRARY AND (TARGET unwind_shared OR HAVE_LIBUNWIND)) | ||||
list(APPEND LIBCXXABI_SHARED_LIBRARIES unwind_shared) | list(APPEND LIBCXXABI_SHARED_LIBRARIES unwind_shared) | ||||
elseif (LIBCXXABI_STATICALLY_LINK_UNWINDER_IN_SHARED_LIBRARY AND (TARGET unwind_static OR HAVE_LIBUNWIND)) | elseif (LIBCXXABI_STATICALLY_LINK_UNWINDER_IN_SHARED_LIBRARY AND (TARGET unwind_static OR HAVE_LIBUNWIND)) | ||||
list(APPEND LIBCXXABI_SHARED_LIBRARIES unwind_static) | list(APPEND LIBCXXABI_SHARED_LIBRARIES unwind_static) | ||||
▲ Show 20 Lines • Show All 234 Lines • Show Last 20 Lines |