[CMake] Allow LLVM_TOOLCHAIN_TOOLS to be overridden
authorChris Bieneman <beanz@apple.com>
Thu, 10 Sep 2015 17:23:32 +0000 (17:23 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 10 Sep 2015 17:23:32 +0000 (17:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247306 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/AddLLVM.cmake

index 8ec6311..fcf023b 100644 (file)
@@ -640,11 +640,12 @@ function(export_executable_symbols target)
   endif()
 endfunction()
 
-
-set (LLVM_TOOLCHAIN_TOOLS
-  llvm-ar
-  llvm-objdump
-  )
+if(NOT LLVM_TOOLCHAIN_TOOLS)
+  set (LLVM_TOOLCHAIN_TOOLS
+    llvm-ar
+    llvm-objdump
+    )
+endif()
 
 macro(add_llvm_tool name)
   if( NOT LLVM_BUILD_TOOLS )