diff options
author | Petr Hosek <phosek@chromium.org> | 2016-08-09 00:27:19 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2016-08-09 00:27:19 +0000 |
commit | b9a77f827dcfa5fb06b3be105c381c6b0b641b29 (patch) | |
tree | 524e7d4bddd76a5df29b64319f2fc0792888cc73 | |
parent | 015280211b091946b5ae33f2e5a056346068fe55 (diff) | |
download | bcm5719-llvm-b9a77f827dcfa5fb06b3be105c381c6b0b641b29.tar.gz bcm5719-llvm-b9a77f827dcfa5fb06b3be105c381c6b0b641b29.zip |
Add lib directory to linker paths when using libunwind
When using libunwind and not building as standalone project, we
need to add LLVM library directory to the list of linker directories
to ensure it can find libunwind dependency.
Differential Revision: https://reviews.llvm.org/D23287
llvm-svn: 278076
-rw-r--r-- | libcxxabi/src/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxxabi/src/CMakeLists.txt b/libcxxabi/src/CMakeLists.txt index b851b4ac777..163e8ceb75c 100644 --- a/libcxxabi/src/CMakeLists.txt +++ b/libcxxabi/src/CMakeLists.txt @@ -55,6 +55,9 @@ endif() append_if(libraries LIBCXXABI_HAS_C_LIB c) if (LIBCXXABI_USE_LLVM_UNWINDER) + if (NOT LIBCXXABI_BUILT_STANDALONE) + link_directories(${LLVM_LIBRARY_DIR}) + endif() list(APPEND libraries unwind) else() append_if(libraries LIBCXXABI_HAS_GCC_S_LIB gcc_s) |