[all-commits] [llvm/llvm-project] b780df: [libunwind] Treat assembly files as C on mingw

Martin Storsjö via All-commits all-commits at lists.llvm.org
Sun Jan 26 23:15:43 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b780df052dd2b246a760d00e00f7de9ebdab9d09
      https://github.com/llvm/llvm-project/commit/b780df052dd2b246a760d00e00f7de9ebdab9d09
  Author: Martin Storsjö <martin at martin.st>
  Date:   2020-01-27 (Mon, 27 Jan 2020)

  Changed paths:
    M libunwind/src/CMakeLists.txt

  Log Message:
  -----------
  [libunwind] Treat assembly files as C on mingw

When targeting mingw, current CMake (3.16) fails to get the right
flags for assembly source files for windows gnu/clang targets
(see https://gitlab.kitware.com/cmake/cmake/merge_requests/4287
for a fix), causing builds to fail due to `-fPIC` being unsupported
in clang for mingw targets

In the meantime, restore the behaviour from before c48974ffd7d1676
selectively on mingw targets, treating the assembly files as C.

Differential Revision: https://reviews.llvm.org/D73436




More information about the All-commits mailing list