Fix detection of backtrace() availability on FreeBSD
authorEd Maste <emaste@freebsd.org>
Wed, 12 Apr 2017 13:51:00 +0000 (13:51 +0000)
committerEd Maste <emaste@freebsd.org>
Wed, 12 Apr 2017 13:51:00 +0000 (13:51 +0000)
commite544379b30cc103d5cb8f406516f848a0004ca31
treea3ec045b0cae6a05950af59d56af0459bf73e9f6
parent22776892c9aad3cedd2f3692d324ff45af1b29fb
Fix detection of backtrace() availability on FreeBSD

On FreeBSD backtrace is not part of libc and depends on libexecinfo
being available. Instead of using manual checks we can use the builtin
CMake module FindBacktrace.cmake to detect availability of backtrace()
in a portable way.

Patch By: Alex Richardson
Differential Revision: https://reviews.llvm.org/D27143

llvm-svn: 300062
llvm/cmake/config-ix.cmake
llvm/include/llvm/Config/config.h.cmake
llvm/lib/Support/CMakeLists.txt
llvm/lib/Support/Unix/Signals.inc