[llvm] r304587 - [CMake][runtimes] Add install target for runtimes builtins
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 2 12:38:12 PDT 2017
Author: phosek
Date: Fri Jun 2 14:38:11 2017
New Revision: 304587
URL: http://llvm.org/viewvc/llvm-project?rev=304587&view=rev
Log:
[CMake][runtimes] Add install target for runtimes builtins
This adds an install-builtins target to avoid having to list all
builtins targets explicitly.
Differential Revision: https://reviews.llvm.org/D32710
Modified:
llvm/trunk/runtimes/CMakeLists.txt
Modified: llvm/trunk/runtimes/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtimes/CMakeLists.txt?rev=304587&r1=304586&r2=304587&view=diff
==============================================================================
--- llvm/trunk/runtimes/CMakeLists.txt (original)
+++ llvm/trunk/runtimes/CMakeLists.txt Fri Jun 2 14:38:11 2017
@@ -188,6 +188,7 @@ else() # if this is included from LLVM's
else()
get_cmake_property(variableNames VARIABLES)
add_custom_target(builtins)
+ add_custom_target(install-builtins)
foreach(target ${LLVM_BUILTIN_TARGETS})
string(REPLACE "-" ";" builtin_target_list ${target})
foreach(item ${builtin_target_list})
@@ -218,6 +219,7 @@ else() # if this is included from LLVM's
USE_TOOLCHAIN
${EXTRA_ARGS})
add_dependencies(builtins builtins-${target})
+ add_dependencies(install-builtins install-builtins-${target})
endforeach()
endif()
set(deps builtins)
More information about the llvm-commits
mailing list