HomePhabricator

[libunwind] Treat assembly files as C on mingw

Authored by mstorsjo on Jan 26 2020, 12:14 PM.

Description

[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

Details

Committed
mstorsjoJan 26 2020, 11:04 PM
Differential Revision
D73436: [libunwind] Treat assembly files as C on mingw
Parents
rG59d690850eeb: [NFC] Fix typo in Clang docs
Branches
Unknown
Tags
Unknown