]> granicus.if.org Git - clang/commitdiff
Do not use absolute path on the clang++ symlink.
authorOscar Fuentes <ofv@wanadoo.es>
Mon, 18 Oct 2010 02:25:54 +0000 (02:25 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Mon, 18 Oct 2010 02:25:54 +0000 (02:25 +0000)
Based on a patch by Ryuta Suzuki!

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

tools/driver/clang_symlink.cmake

index d3f11d313ef49b55c6ef8ff6b794b1b3b0b23f1e..40a74824cf2b8c6a41b02cce97912257ee3eefa3 100644 (file)
@@ -10,9 +10,11 @@ else()
 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}")