Index: libunwind/src/CMakeLists.txt =================================================================== --- libunwind/src/CMakeLists.txt +++ libunwind/src/CMakeLists.txt @@ -24,6 +24,13 @@ UnwindRegistersRestore.S UnwindRegistersSave.S ) +if (MINGW) + # Current CMake (3.16) doesn't build assembly sources for windows/gnu + # targets properly, so treat them as C files. + set_source_files_properties(${LIBUNWIND_ASM_SOURCES} + PROPERTIES + LANGUAGE C) +endif() set(LIBUNWIND_HEADERS AddressSpace.hpp