Revert "build: always add support for assembly targets on Darwin"

This reverts commit d8e8e32d85.

This breaks the build on GreenDragon:
http://green.lab.llvm.org/green/job/clang-stage1-RA/13171/console
This commit is contained in:
Francis Visoiu Mistrih 2020-07-29 15:41:04 -07:00
parent 6587ff77ea
commit 926c14798d
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ endfunction()
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_SYSTEM_NAME STREQUAL Darwin)
if (${CMAKE_GENERATOR} STREQUAL "Xcode")
enable_language(ASM)
else()
# Pass ASM file directly to the C++ compiler.