[cfe-commits] r116695 - /cfe/trunk/tools/driver/clang_symlink.cmake
Oscar Fuentes
ofv at wanadoo.es
Sun Oct 17 19:25:54 PDT 2010
Author: ofv
Date: Sun Oct 17 21:25:54 2010
New Revision: 116695
URL: http://llvm.org/viewvc/llvm-project?rev=116695&view=rev
Log:
Do not use absolute path on the clang++ symlink.
Based on a patch by Ryuta Suzuki!
Modified:
cfe/trunk/tools/driver/clang_symlink.cmake
Modified: cfe/trunk/tools/driver/clang_symlink.cmake
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/clang_symlink.cmake?rev=116695&r1=116694&r2=116695&view=diff
==============================================================================
--- cfe/trunk/tools/driver/clang_symlink.cmake (original)
+++ cfe/trunk/tools/driver/clang_symlink.cmake Sun Oct 17 21:25:54 2010
@@ -10,9 +10,11 @@
endif()
set(bindir "${CLANGXX_DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/")
-set(clang "${bindir}clang${CMAKE_EXECUTABLE_SUFFIX}")
-set(clangxx "${bindir}clang++${CMAKE_EXECUTABLE_SUFFIX}")
+set(clang "clang${CMAKE_EXECUTABLE_SUFFIX}")
+set(clangxx "clang++${CMAKE_EXECUTABLE_SUFFIX}")
message("Creating clang++ executable based on ${clang}")
-execute_process(COMMAND "${CMAKE_COMMAND}" -E ${CLANGXX_LINK_OR_COPY} "${clang}" "${clangxx}")
+execute_process(
+ COMMAND "${CMAKE_COMMAND}" -E ${CLANGXX_LINK_OR_COPY} "${clang}" "${clangxx}"
+ WORKING_DIRECTORY "${bindir}")
More information about the cfe-commits
mailing list