[llvm] r198316 - Remove CMake-Xcode hack that symlinked llvm-config into a common place.
Douglas Gregor
dgregor at apple.com
Thu Jan 2 08:30:55 PST 2014
Author: dgregor
Date: Thu Jan 2 10:30:55 2014
New Revision: 198316
URL: http://llvm.org/viewvc/llvm-project?rev=198316&view=rev
Log:
Remove CMake-Xcode hack that symlinked llvm-config into a common place.
When building Clang separately from LLVM with CMake, one should set
the path of llvm-config via the cache variable LLVM_CONFIG.
Modified:
llvm/trunk/cmake/modules/TableGen.cmake
Modified: llvm/trunk/cmake/modules/TableGen.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/TableGen.cmake?rev=198316&r1=198315&r2=198316&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/TableGen.cmake (original)
+++ llvm/trunk/cmake/modules/TableGen.cmake Thu Jan 2 10:30:55 2014
@@ -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.")
More information about the llvm-commits
mailing list