Remove CMake-Xcode hack that symlinked llvm-config into a common place.
authorDouglas Gregor <dgregor@apple.com>
Thu, 2 Jan 2014 16:30:55 +0000 (16:30 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 2 Jan 2014 16:30:55 +0000 (16:30 +0000)
When building Clang separately from LLVM with CMake, one should set
the path of llvm-config via the cache variable LLVM_CONFIG.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198316 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/TableGen.cmake

index ec4252e604062e8ad7eb9d2ff072a25616d3d7cf..8c1f18c4e936b716e84a68c0f2f2b6730c3b7236 100644 (file)
@@ -84,16 +84,6 @@ macro(add_tablegen target project)
   add_llvm_utility(${target} ${ARGN})
   set(LLVM_LINK_COMPONENTS ${${target}_OLD_LLVM_LINK_COMPONENTS})
 
-  # For Xcode builds, symlink bin/<target> to bin/<Config>/<target> so that
-  # a separately-configured Clang project can still find llvm-tblgen.
-  if (XCODE)
-    add_custom_target(${target}-top ALL
-      ${CMAKE_COMMAND} -E create_symlink 
-        ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${target}${CMAKE_EXECUTABLE_SUFFIX}
-        ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${target}${CMAKE_EXECUTABLE_SUFFIX}
-      DEPENDS ${target})
-  endif ()
-
   set(${project}_TABLEGEN "${target}" CACHE
       STRING "Native TableGen executable. Saves building one when cross-compiling.")