Import libunwind 11.1.0 release.
authorpatrick <patrick@openbsd.org>
Wed, 28 Apr 2021 12:59:01 +0000 (12:59 +0000)
committerpatrick <patrick@openbsd.org>
Wed, 28 Apr 2021 12:59:01 +0000 (12:59 +0000)
gnu/llvm/libunwind/.clang-format [new file with mode: 0644]
gnu/llvm/libunwind/CMakeLists.txt
gnu/llvm/libunwind/src/CMakeLists.txt

diff --git a/gnu/llvm/libunwind/.clang-format b/gnu/llvm/libunwind/.clang-format
new file mode 100644 (file)
index 0000000..5bead5f
--- /dev/null
@@ -0,0 +1,2 @@
+BasedOnStyle: LLVM
+
index bd8176c..e44a103 100644 (file)
@@ -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")
 
index 8f79b1c..309a85b 100644 (file)
@@ -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