diff options
| author | Chris Bieneman <beanz@apple.com> | 2016-05-24 20:19:05 +0000 |
|---|---|---|
| committer | Chris Bieneman <beanz@apple.com> | 2016-05-24 20:19:05 +0000 |
| commit | 96e44e7c8af4f0b016d7c59cf30db57cb342bb09 (patch) | |
| tree | bfc6c5f3ae17dec1f417046a5503443918ffa7cc | |
| parent | 4718f8b5f133e68a5925bddf0bad0ca3e8394428 (diff) | |
| download | bcm5719-llvm-96e44e7c8af4f0b016d7c59cf30db57cb342bb09.tar.gz bcm5719-llvm-96e44e7c8af4f0b016d7c59cf30db57cb342bb09.zip | |
Add libxar to LLVM_SYSTEM_LIBS if available
This should fix PR27855. We have some terrible hacks in the CMake to add linking SYSTEM_LIBS to all tools. I think we need a better way to do this in the future.
llvm-svn: 270605
| -rw-r--r-- | llvm/lib/Support/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt index 3d718e6a11c..3c8f78b2a00 100644 --- a/llvm/lib/Support/CMakeLists.txt +++ b/llvm/lib/Support/CMakeLists.txt @@ -24,6 +24,9 @@ elseif( CMAKE_HOST_UNIX ) if( UNIX AND NOT (BEOS OR HAIKU) ) set(system_libs ${system_libs} m) endif() + if(HAVE_LIBXAR) + list(APPEND system_libs ${XAR_LIB}) + endif() endif( MSVC OR MINGW ) add_llvm_library(LLVMSupport |

