build: always add support for assembly targets on Darwin
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 22 Jul 2020 15:54:36 +0000 (08:54 -0700)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 29 Jul 2020 21:01:02 +0000 (14:01 -0700)
commitd8e8e32d85f1cbde2a6b67af010fba3c3a3c86e9
treed8ef17a99b9994ac38d8f7ceda12a9ff2f05ccbb
parent120e66b3418b37b95fc1dbbb23e296a602a24fa8
build: always add support for assembly targets on Darwin

When attempting to build compiler-rt on a developer transition kit, the
build would fail due to `.S` files not being handled properly by the
Ninja generator.  Rather than conditionalising on Xcode, conditionalise
to Darwin.  Because we know that the system compiler is clang based, it
will always properly handle the pre-processing based on the extension.

Differential Revision: https://reviews.llvm.org/D84333
compiler-rt/cmake/Modules/AddCompilerRT.cmake