summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2016-05-23 21:34:12 +0000
committerKevin Enderby <enderby@apple.com>2016-05-23 21:34:12 +0000
commit866cdd590de5c5b172be2735a643d4c36a691193 (patch)
tree9ebde57bc51564f933b90f5da2e53fed08915b95 /cmake
parente3a492d0d02f2c663b3acb20b954c2e5d4a97a60 (diff)
Add the printing the Mach-O (__LLVM,__bundle) xar archive file section "verbosely"
to llvm-objdump. This section is created with -fembed-bitcode option. This requires the use of libxar and the Cmake and lit support were crafted by Chris Bieneman! rdar://26202242 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270491 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/config-ix.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 7149e13b07e..a40dddfc1c8 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -141,6 +141,11 @@ if( NOT PURE_WINDOWS AND NOT LLVM_USE_SANITIZER MATCHES "Memory.*")
endif()
endif()
+check_library_exists(xar xar_open "" HAVE_LIBXAR)
+if(HAVE_LIBXAR)
+ set(XAR_LIB xar)
+endif()
+
# function checks
check_symbol_exists(arc4random "stdlib.h" HAVE_DECL_ARC4RANDOM)
check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE)