From 5a0f275147ff5c3fed653e3c993c964edbf79c4b Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 2 Sep 2015 10:11:26 +0000 Subject: [PATCH] [CMake] Don't use OBJLIB on Xcode. I got a few reports it didn't work. llvm-svn: 246629 --- cmake/modules/TableGen.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake index f1ddcd49a58..98646bc16df 100644 --- a/cmake/modules/TableGen.cmake +++ b/cmake/modules/TableGen.cmake @@ -74,8 +74,10 @@ macro(add_tablegen target project) set(${target}_OLD_LLVM_LINK_COMPONENTS ${LLVM_LINK_COMPONENTS}) set(LLVM_LINK_COMPONENTS ${LLVM_LINK_COMPONENTS} TableGen) - # FIXME: It leaks to user, callee of add_tablegen. - set(LLVM_ENABLE_OBJLIB ON) + if(NOT XCODE) + # FIXME: It leaks to user, callee of add_tablegen. + set(LLVM_ENABLE_OBJLIB ON) + endif() add_llvm_utility( ${target} ${ARGN}