smeenai created this revision. smeenai added reviewers: beanz, phosek, tstellar. Herald added a subscriber: mgorny. smeenai requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
This code was written back when LLVM's minimum required CMake version was 2.8.8, and I assume ExternalProject_Add_Step didn't take this option at that point. It does now though, so we should just use the option. Setting the _EP_* property is entirely equivalent (and is in fact how these commands behave internally), but that also feels like an internal implementation detail we shouldn't be relying on. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D99322 Files: clang/CMakeLists.txt Index: clang/CMakeLists.txt =================================================================== --- clang/CMakeLists.txt +++ clang/CMakeLists.txt @@ -864,9 +864,6 @@ set(CLANG_BOOTSTRAP_TARGETS check-llvm check-clang check-all) endif() foreach(target ${CLANG_BOOTSTRAP_TARGETS}) - # 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 @@ -884,6 +881,7 @@ COMMENT "Performing ${target} for '${NEXT_CLANG_STAGE}'" DEPENDEES configure ALWAYS ${step_always} + EXCLUDE_FROM_MAIN ON USES_TERMINAL 1 )
Index: clang/CMakeLists.txt =================================================================== --- clang/CMakeLists.txt +++ clang/CMakeLists.txt @@ -864,9 +864,6 @@ set(CLANG_BOOTSTRAP_TARGETS check-llvm check-clang check-all) endif() foreach(target ${CLANG_BOOTSTRAP_TARGETS}) - # 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 @@ -884,6 +881,7 @@ COMMENT "Performing ${target} for '${NEXT_CLANG_STAGE}'" DEPENDEES configure ALWAYS ${step_always} + EXCLUDE_FROM_MAIN ON USES_TERMINAL 1 )
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits