diff options
| author | Petr Hosek <phosek@chromium.org> | 2019-05-02 17:29:37 +0000 |
|---|---|---|
| committer | Petr Hosek <phosek@chromium.org> | 2019-05-02 17:29:37 +0000 |
| commit | f0652f03b66e8abc0100da8829f0af27ac8fb2d6 (patch) | |
| tree | 6d2738374ac5f03a8396f3c928116d0a69879d19 /libunwind | |
| parent | 156226bb7042def3af8b7a9ef81a05a5d41b52eb (diff) | |
| download | bcm5719-llvm-f0652f03b66e8abc0100da8829f0af27ac8fb2d6.tar.gz bcm5719-llvm-f0652f03b66e8abc0100da8829f0af27ac8fb2d6.zip | |
[gn] Support for building libunwind
This change introduces support for building libuwind. The library
build should be complete, but not all CMake options have been
replicated in GN. We also don't support tests yet.
We only support two stage build at the moment.
Differential Revision: https://reviews.llvm.org/D60370
llvm-svn: 359804
Diffstat (limited to 'libunwind')
| -rw-r--r-- | libunwind/src/CMakeLists.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/libunwind/src/CMakeLists.txt b/libunwind/src/CMakeLists.txt index f4a8241767d..191f1673f42 100644 --- a/libunwind/src/CMakeLists.txt +++ b/libunwind/src/CMakeLists.txt @@ -3,20 +3,23 @@ set(LIBUNWIND_CXX_SOURCES libunwind.cpp Unwind-EHABI.cpp - Unwind-seh.cpp) + Unwind-seh.cpp + ) unwind_append_if(LIBUNWIND_CXX_SOURCES APPLE Unwind_AppleExtras.cpp) set(LIBUNWIND_C_SOURCES UnwindLevel1.c UnwindLevel1-gcc-ext.c - Unwind-sjlj.c) + Unwind-sjlj.c + ) set_source_files_properties(${LIBUNWIND_C_SOURCES} PROPERTIES COMPILE_FLAGS "-std=c99") set(LIBUNWIND_ASM_SOURCES UnwindRegistersRestore.S - UnwindRegistersSave.S) + UnwindRegistersSave.S + ) set_source_files_properties(${LIBUNWIND_ASM_SOURCES} PROPERTIES LANGUAGE C) @@ -33,11 +36,13 @@ set(LIBUNWIND_HEADERS Registers.hpp RWMutex.hpp UnwindCursor.hpp - ${CMAKE_CURRENT_SOURCE_DIR}/../include/libunwind.h - ${CMAKE_CURRENT_SOURCE_DIR}/../include/unwind.h) + ../include/libunwind.h + ../include/unwind.h + ) unwind_append_if(LIBUNWIND_HEADERS APPLE - "${CMAKE_CURRENT_SOURCE_DIR}/../include/mach-o/compact_unwind_encoding.h") + ../include/mach-o/compact_unwind_encoding.h + ) if (MSVC_IDE) # Force them all into the headers dir on MSVC, otherwise they end up at |

