From 11caed9e121eef5fa6dc7dfbf4c92877d131dc4c 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246629 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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} -- 2.34.1