[PATCH] D99321: [clang] Always execute multi-stage install steps
Shoaib Meenai via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 25 11:36:33 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0135bc996d82: [clang] Always execute multi-stage install steps (authored by smeenai).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99321/new/
https://reviews.llvm.org/D99321
Files:
clang/CMakeLists.txt
Index: clang/CMakeLists.txt
===================================================================
--- clang/CMakeLists.txt
+++ clang/CMakeLists.txt
@@ -867,10 +867,23 @@
# exclude from main target
set_target_properties(${NEXT_CLANG_STAGE} PROPERTIES _EP_${target}_EXCLUDE_FROM_MAIN On)
+ # Install targets have side effects, so we always want to execute them.
+ # "install" is reserved by CMake and can't be used as a step name for
+ # ExternalProject_Add_Step, so we can match against "^install-" instead of
+ # "^install" to get a tighter match. CMake's installation scripts already
+ # skip up-to-date files, so there's no behavior change if you install to the
+ # same destination multiple times.
+ if(target MATCHES "^install-")
+ set(step_always ON)
+ else()
+ set(step_always OFF)
+ endif()
+
ExternalProject_Add_Step(${NEXT_CLANG_STAGE} ${target}
COMMAND ${CMAKE_COMMAND} --build <BINARY_DIR> --target ${target}
COMMENT "Performing ${target} for '${NEXT_CLANG_STAGE}'"
DEPENDEES configure
+ ALWAYS ${step_always}
USES_TERMINAL 1
)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99321.333374.patch
Type: text/x-patch
Size: 1131 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210325/bc7d3414/attachment.bin>
More information about the cfe-commits
mailing list