summaryrefslogtreecommitdiff
path: root/tools/llvm-ar
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-12-04 00:23:58 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-12-04 00:23:58 +0000
commit471e834c8d978b253470a0f5c069f135feebcb9d (patch)
treee012936eaee817c15d6e7dc089d4a4c85a2e415d /tools/llvm-ar
parent459e595697cf789720169d92000077a62675a2dc (diff)
For copy, cmake needs the full path to llvm-ar.
This should fix the windows build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ar')
-rw-r--r--tools/llvm-ar/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvm-ar/CMakeLists.txt b/tools/llvm-ar/CMakeLists.txt
index 50e1088615c..6a1a7f3dc83 100644
--- a/tools/llvm-ar/CMakeLists.txt
+++ b/tools/llvm-ar/CMakeLists.txt
@@ -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}