summaryrefslogtreecommitdiff
path: root/gnu/llvm
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2021-04-28 12:59:02 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2021-04-28 12:59:02 +0000
commit8c9303d46e18bb7d850d7343e14916c055a59471 (patch)
treeaba521c68b947906bc6ebfdf962ea48bb1263e25 /gnu/llvm
parente629818e740971cf034d6f69c00255cb39978b9f (diff)
Import libunwind 11.1.0 release.
Diffstat (limited to 'gnu/llvm')
-rw-r--r--gnu/llvm/libunwind/.clang-format2
-rw-r--r--gnu/llvm/libunwind/CMakeLists.txt2
-rw-r--r--gnu/llvm/libunwind/src/CMakeLists.txt12
3 files changed, 7 insertions, 9 deletions
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