HomePhabricator

[libunwind][CMake] Treat S files as C to work around CMake bug.

Authored by Bigcheese on Feb 20 2020, 3:25 PM.

Description

[libunwind][CMake] Treat S files as C to work around CMake bug.

The OSX_ARCHITECTURES property is supposed to add the -arch flag when
targeting Apple platforms. However, due to a bug in CMake
(https://github.com/Kitware/CMake/blob/master/Source/cmLocalGenerator.cxx#L1780),
this does not apply to assembly files. This results in a linker error
when trying to build libunwind for i386 on MacOS.

rdar://59642189

Details

Committed
BigcheeseFeb 20 2020, 3:26 PM
Parents
rG72ce0c8073bc: [libc++][regex] Validate backreferences in the constructor.
Branches
Unknown
Tags
Unknown