[libcxx-commits] [PATCH] D73436: [libunwind] Treat assembly files as C on mingw

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jan 26 23:18:33 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGb780df052dd2: [libunwind] Treat assembly files as C on mingw (authored by mstorsjo).

Changed prior to commit:
  https://reviews.llvm.org/D73436?vs=240452&id=240476#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73436/new/

https://reviews.llvm.org/D73436

Files:
  libunwind/src/CMakeLists.txt


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73436.240476.patch
Type: text/x-patch
Size: 599 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200127/28d79205/attachment.bin>


More information about the libcxx-commits mailing list