From: patrick Date: Wed, 28 Apr 2021 12:59:01 +0000 (+0000) Subject: Import libunwind 11.1.0 release. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ac713c0c74d4c1eccdfd64ea48488e6e8436560e;p=openbsd Import libunwind 11.1.0 release. --- diff --git a/gnu/llvm/libunwind/.clang-format b/gnu/llvm/libunwind/.clang-format new file mode 100644 index 00000000000..5bead5f39dd --- /dev/null +++ b/gnu/llvm/libunwind/.clang-format @@ -0,0 +1,2 @@ +BasedOnStyle: LLVM + diff --git a/gnu/llvm/libunwind/CMakeLists.txt b/gnu/llvm/libunwind/CMakeLists.txt index bd8176c6792..e44a103648f 100644 --- a/gnu/llvm/libunwind/CMakeLists.txt +++ b/gnu/llvm/libunwind/CMakeLists.txt @@ -83,7 +83,7 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR OR LIBUNWIND_STANDALONE_B endif() set(PACKAGE_NAME libunwind) - set(PACKAGE_VERSION 11.0.0) + set(PACKAGE_VERSION 11.1.0) set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}") set(PACKAGE_BUGREPORT "llvm-bugs@lists.llvm.org") diff --git a/gnu/llvm/libunwind/src/CMakeLists.txt b/gnu/llvm/libunwind/src/CMakeLists.txt index 8f79b1cf874..309a85b22f5 100644 --- a/gnu/llvm/libunwind/src/CMakeLists.txt +++ b/gnu/llvm/libunwind/src/CMakeLists.txt @@ -24,14 +24,10 @@ set(LIBUNWIND_ASM_SOURCES UnwindRegistersRestore.S UnwindRegistersSave.S ) -if (MINGW OR APPLE) - # CMake doesn't build assembly sources for windows/gnu targets properly - # (up to current CMake, 3.16), so treat them as C files. - # Additionally, CMake ignores OSX_ARCHITECTURE for ASM files when targeting - # Apple platforms. - set_source_files_properties(${LIBUNWIND_ASM_SOURCES} - PROPERTIES - LANGUAGE C) + +# See add_asm_sources() in compiler-rt for explanation of this workaround. +if((APPLE AND CMAKE_VERSION VERSION_LESS 3.19) OR (MINGW AND CMAKE_VERSION VERSION_LESS 3.17)) + set_source_files_properties(${LIBUNWIND_ASM_SOURCES} PROPERTIES LANGUAGE C) endif() set(LIBUNWIND_HEADERS