[llvm] r247306 - [CMake] Allow LLVM_TOOLCHAIN_TOOLS to be overridden
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 10:23:32 PDT 2015
Author: cbieneman
Date: Thu Sep 10 12:23:32 2015
New Revision: 247306
URL: http://llvm.org/viewvc/llvm-project?rev=247306&view=rev
Log:
[CMake] Allow LLVM_TOOLCHAIN_TOOLS to be overridden
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=247306&r1=247305&r2=247306&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Thu Sep 10 12:23:32 2015
@@ -640,11 +640,12 @@ function(export_executable_symbols targe
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 )
More information about the llvm-commits
mailing list