Fix detection of unw_set_cache_size and adapt to upstream changes
authorMilian Wolff <mail@milianw.de>
Sat, 28 Jan 2017 21:49:09 +0000 (22:49 +0100)
committerMilian Wolff <mail@milianw.de>
Sat, 28 Jan 2017 21:51:09 +0000 (22:51 +0100)
commit39ef60acf67833e2b3b94dc51b0702507ca63def
treeedd3ffe529f2fff2098672d4ddfede240c08484a
parent15afea6aaecd0ae420600fc8d9ed98c119c29bca
Fix detection of unw_set_cache_size and adapt to upstream changes

unw_set_cache_size is actually a define so we can detect it directly
in C++ without the need for CMake to detect it for us. Using the
define also makes sure we can detect it once for all platforms, the
symbol is mangled by libunwind to support multiple architectures.
cmake/FindLibunwind.cmake
src/track/libheaptrack.cpp
src/util/libunwind_config.h.cmake