[llvm] r223324 - For copy, cmake needs the full path to llvm-ar.
Rafael Espindola
rafael.espindola at gmail.com
Wed Dec 3 16:23:58 PST 2014
Author: rafael
Date: Wed Dec 3 18:23:58 2014
New Revision: 223324
URL: http://llvm.org/viewvc/llvm-project?rev=223324&view=rev
Log:
For copy, cmake needs the full path to llvm-ar.
This should fix the windows build.
Modified:
llvm/trunk/tools/llvm-ar/CMakeLists.txt
Modified: llvm/trunk/tools/llvm-ar/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ar/CMakeLists.txt?rev=223324&r1=223323&r2=223324&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ar/CMakeLists.txt (original)
+++ llvm/trunk/tools/llvm-ar/CMakeLists.txt Wed Dec 3 18:23:58 2014
@@ -11,11 +11,12 @@ add_llvm_tool(llvm-ar
if(UNIX)
set(LLVM_LINK_OR_COPY create_symlink)
+ set(llvm_ar_binary "llvm-ar${CMAKE_EXECUTABLE_SUFFIX}")
else()
set(LLVM_LINK_OR_COPY copy)
+ set(llvm_ar_binary "${LLVM_RUNTIME_OUTPUT_INTDIR}/llvm-ar${CMAKE_EXECUTABLE_SUFFIX}")
endif()
-set(llvm_ar_binary "llvm-ar${CMAKE_EXECUTABLE_SUFFIX}")
set(llvm_ranlib "${LLVM_RUNTIME_OUTPUT_INTDIR}/llvm-ranlib${CMAKE_EXECUTABLE_SUFFIX}")
add_custom_command(OUTPUT ${llvm_ranlib}
More information about the llvm-commits
mailing list