[PATCH] D84333: build: always add support for assembly targets on Darwin
Saleem Abdulrasool via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 29 14:01:47 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd8e8e32d85f1: build: always add support for assembly targets on Darwin (authored by compnerd).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84333/new/
https://reviews.llvm.org/D84333
Files:
compiler-rt/cmake/Modules/AddCompilerRT.cmake
Index: compiler-rt/cmake/Modules/AddCompilerRT.cmake
===================================================================
--- compiler-rt/cmake/Modules/AddCompilerRT.cmake
+++ compiler-rt/cmake/Modules/AddCompilerRT.cmake
@@ -110,7 +110,7 @@
function(add_asm_sources output)
set(${output} ${ARGN} PARENT_SCOPE)
# Xcode will try to compile asm files as C ('clang -x c'), and that will fail.
- if (${CMAKE_GENERATOR} STREQUAL "Xcode")
+ if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
enable_language(ASM)
else()
# Pass ASM file directly to the C++ compiler.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84333.281733.patch
Type: text/x-patch
Size: 568 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200729/7b2a4d82/attachment.bin>
More information about the llvm-commits
mailing list