Merge pull request #13208 from ClickHouse/libunwind-register

Allow "register" variables in libunwind
This commit is contained in:
alexey-milovidov 2020-08-02 01:45:06 +03:00 committed by GitHub
commit 120092e486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,13 @@ if (HAVE_WARNING_MAYBE_UNINITIALIZED)
target_compile_options(unwind PRIVATE -Wno-maybe-uninitialized)
endif ()
# The library is using register variables that are bound to specific registers
# Example: DwarfInstructions.hpp: register unsigned long long x16 __asm("x16") = cfa;
check_cxx_compiler_flag(-Wregister HAVE_WARNING_REGISTER)
if (HAVE_WARNING_REGISTER)
target_compile_options(unwind PRIVATE -Wno-register)
endif ()
install(
TARGETS unwind
EXPORT global