aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-04-23 10:17:34 +0000
committerAlexey Samsonov <samsonov@google.com>2013-04-23 10:17:34 +0000
commit005159e92420a102516ee6e29ef2178c818da5d0 (patch)
tree12692c0e8cf95807e5645786b7bc751f8bf71692 /cmake
parentab4d569f2841beaf6152179b1f4da6b7e0f3530e (diff)
Use zlib to uncompress debug sections in DWARF parser.
This makes llvm-dwarfdump and llvm-symbolizer understand debug info sections compressed by ld.gold linker. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/config-ix.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index c426f41f5c..7c4285a299 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -105,7 +105,11 @@ if( NOT PURE_WINDOWS )
endif()
check_library_exists(dl dlopen "" HAVE_LIBDL)
check_library_exists(rt clock_gettime "" HAVE_LIBRT)
- check_library_exists(z compress2 "" HAVE_LIBZ)
+ if (LLVM_ENABLE_ZLIB)
+ check_library_exists(z compress2 "" HAVE_LIBZ)
+ else()
+ set(HAVE_LIBZ 0)
+ endif()
endif()
# function checks