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")
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