<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 9, 2016, at 10:49 AM, Justin Bogner <<a href="mailto:mail@justinbogner.com" class="">mail@justinbogner.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Chris Bieneman <</span><a href="mailto:beanz@apple.com" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">beanz@apple.com</a><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">> writes:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Moving to llvm-dev (I think this has gone a bit further than a patch<br class="">review discussion)<br class=""><br class="">In hindsight I probably should have explained more of my thinking on<br class="">this with the patch, or done an RFC on llvm-dev to start with. I’l do<br class="">that now, and answer the questions along the way. I sent a separate<br class="">email discussing Justin’s patch review feedback.<br class=""><br class="">In the build system today there is no strong distinction between<br class="">‘projects’ and ‘tools’. There are a few subtle differences, but I’m<br class="">not sure any of them really matter. The differences are:<br class=""><br class="">(1) The projects directory is always configured, tools can be disabled<br class="">using LLVM_INCLUDE_TOOLS=Off (projects and tools can both be<br class="">individually disabled too)<br class="">(2) Projects are configured before tools, so tools can rely on targets<br class="">being created for projects (we don’t really use this, and anywhere we<br class="">are is probably a bug)<br class="">(3) Some projects have special handling. For example test-suite isn’t<br class="">actually treated as a project, it has special handling in<br class="">LLVM/CMakeLists.txt:727, and Compiler-RT is handled by clang if you<br class="">set LLVM_BUILD_EXTERNAL_COMPILER_RT=On.<br class=""><br class="">With this in mind I was thinking about the general usability of our<br class="">build system. The distinction between a project and a tool is not very<br class="">clear. At a high level I see three different use cases that are<br class="">covered by our current projects & tools directories.<br class=""><br class="">(1) Projects that are configured with LLVM<br class="">(2) Runtime projects that should be configured using the just-built tools<br class="">(3) The LLVM test-suite, which is really just external tests that<br class="">should be configured and run with the just-built tools<br class=""><br class="">My proposal is that we make the tools subdirectory the *only* place<br class="">for projects that fall into category 1. I don’t think there is any<br class="">technical reason to drop an in-tree project into projects over tools<br class="">today, and I think we migrating people who are doing that away from it<br class="">should be easy.<br class=""><br class="">Second I want to add a “runtimes” directory to LLVM to cover case 2<br class="">(see D20992). The idea behind this is to use common code in LLVM to<br class="">support building runtimes. This will allow the full LLVM toolchain to<br class="">be visible during configuration. I will abstract this functionality<br class="">into an installed CMake module so that Clang can use it for<br class="">out-of-tree clang builds.<br class=""><br class="">Lastly we need to give the test-suite a new home. I’m not super<br class="">concerned with where we do that. It could be under tests, it could<br class="">just be at the root of the LLVM directory. I don’t think it matters<br class="">too much because it is a one-off. Thoughts welcome.<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">This all seems pretty sensible. Should we also use the opportunity to</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">split compiler-rt's builtins and profiling/sanitizer/etc runtimes, since</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">we'll be moving things around anyway?</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote><div><br class=""></div><div>About that… So this is a complicated issue, but we should discuss it. Building compiler-rt as a monolithic chunk under the runtimes model is actually problematic because it would have circular dependencies.</div><div><br class=""></div><div>For example:</div><div><br class=""></div><div>libclang_rt.asan.aarch64 depends on libcxx.aarch64, but libcxx.aarch64 depends on libclang_rt.builtins.aarch64.</div><div><br class=""></div><div>That means to satisfy the proper build dependencies you need to build clang, then builtins, then libcxx, then the sanitizer libraries.</div><div><br class=""></div><div>Since Compiler-RT’s build does support configuring the builtins directory separately from the sanitizers, we could support this with my runtimes proposal without changing anything else in Compiler-RT through the application of some project-specific hacks. Not idea, but it means this doesn’t need to block my proposal.</div><div><br class=""></div><div>We should consider other alternatives, because it would nice to not have hacks. As an added benefit, if we separated the builtins and sanitizers into separate libraries we would be able to have the sanitizer libraries licensed the same way as LLVM (with the attribution clause), which would limit the amount of code that has its wonky modified license.</div><div><br class=""></div><div>-Chris</div><br class=""><blockquote type="cite" class=""><div class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Some place like test/external or test/integration would probably make</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">sense. It could potentially also be used for other optional tests like</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">debuginfo-tests, which are currently somewhat awkwardly checked out into</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">clang's tests.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">My proposed patch makes the runtimes directory work for Compiler-RT,<br class="">but it doesn’t yet handle libcxxabi, libcxx and libunwind. There is<br class="">some special case handling between libcxxabi and libcxx that will need<br class="">to be handled to make the dependencies work between the two, and I<br class="">still need to work that out.<br class=""><br class="">If we want to go with this proposal I envision the transition being<br class="">multi-staged:<br class=""><br class="">(1) Adding the new functionality, getting it up and fully working for<br class="">all runtime projects - this will involve changes to runtime projects<br class="">(2) Work with bot maintainers to migrate bots, and fix any issues that come up<br class="">(3) Add support for a new secondary location for the test-suite<br class="">(4) Set a date for removing the projects directory, post patches<br class="">including updated documentation<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Sure, but we might as well update the documentation earlier (in step 1)</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">- as soon as compiler-rt can live in runtimes it makes sense to tell</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">people to put it there, even if we still have legacy logic to make it</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">continue to work out of projects as well.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">(5) Remove the projects directory entirely<br class=""><br class="">Thoughts?<br class="">-Chris<br class=""><br class=""><blockquote type="cite" class="">On Jun 8, 2016, at 6:59 PM, Chandler Carruth <<a href="mailto:chandlerc@gmail.com" class="">chandlerc@gmail.com</a>> wrote:<br class=""><br class="">On Wed, Jun 8, 2016 at 4:39 PM Justin Bogner via llvm-commits<br class=""><<a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a><span class="Apple-converted-space"> </span><<a href="mailto:llvm-commits@lists.llvm.org" class="">mailto:llvm-commits@lists.llvm.org</a>>><br class="">wrote:<br class="">Chris Bieneman <<a href="mailto:beanz@apple.com" class="">beanz@apple.com</a><span class="Apple-converted-space"> </span><<a href="mailto:beanz@apple.com" class="">mailto:beanz@apple.com</a>>> writes:<br class=""><blockquote type="cite" class="">beanz created this revision.<br class="">beanz added reviewers: chandlerc, bogner.<br class="">beanz added a subscriber: llvm-commits.<br class=""><br class="">There are a few LLVM projects that produce runtime libraries. Ideally<br class="">runtime libraries should be built differently than other projects,<br class="">specifically they should be built using the just-built toolchain.<br class=""><br class="">There is support for building compiler-rt in this way from the clang<br class="">build. Moving this logic into the LLVM build is interesting because it<br class="">provides a simpler way to extend the just-built toolchain to include<br class="">LLD and the LLVM object file tools.<br class=""><br class="">Once this functionality is better fleshed out and tested we’ll want to<br class="">encapsulate it in a module that can be used for clang standalone<br class="">builds, and we’ll want to make it the default way to build compiler-rt.<br class=""><br class="">With this patch applied there is no immediate change in the build.<br class="">Moving compiler-rt out from llvm/projects into llvm/runtimes enables<br class="">the functionality.<br class=""></blockquote><br class="">This seems reasonable, but I am a little worried about how transitioning<br class="">to the new system will work. Will everyone have to move their<br class="">compiler-rt checkout? Will we continue to support compiler-rt in either<br class="">place? Both of these are workable, but neither is great. Thoughts?<br class=""><br class="">I share your concerns, but I also kind of like the direction this is going.<br class=""><br class="">But there is a higher-level meta-point: do we want to keep the<br class="">'projects' directory *at all*.<br class=""><br class="">Every single resident of it I can think of except for the test-suite<br class="">is either dead (dragonegg) or a runtime library.<br class=""><br class="">I think we should either have all the build-integrated projects in a<br class="">single 'projects' directory (including LLD and Clang), or we should<br class="">have none of them and use more domain relevant organization (today<br class="">"tools", you're adding "runtimes", maybe we move the test-suite to<br class="">go under one of the test directories).<br class=""><br class="">I think we should have a consistent plan here before moving<br class="">stuff. But once we have it, I think we shouldn't be afraid of<br class="">re-organizing stuff to make more sense, and just work to get folks<br class="">to update their checkouts.<br class=""><br class="">-Chandler<br class=""><br class=""><br class=""><blockquote type="cite" class="">This code has a few improvements over the method provided by<br class="">LLVM_BUILD_EXTERNAL_COMPILER_RT. Specifically the sub-ninja command is<br class="">always invoked, so changes to compiler-rt source files will get built<br class="">properly, so this patch can be used for iterative development with<br class="">just-built tools.<br class=""><br class=""><a href="http://reviews.llvm.org/D20992" class="">http://reviews.llvm.org/D20992</a><span class="Apple-converted-space"> </span><<a href="http://reviews.llvm.org/D20992" class="">http://reviews.llvm.org/D20992</a>><br class=""><br class="">Files:<br class=""> CMakeLists.txt<br class=""> cmake/modules/LLVMExternalProjectUtils.cmake<br class=""> runtimes/CMakeLists.txt<br class=""><br class="">Index: runtimes/CMakeLists.txt<br class="">===================================================================<br class="">--- /dev/null<br class="">+++ runtimes/CMakeLists.txt<br class="">@@ -0,0 +1,16 @@<br class="">+include(LLVMExternalProjectUtils)<br class="">+<br class="">+# Discover the projects that use CMake in the subdirectories.<br class="">+# Note that explicit cmake invocation is required every time a new project is<br class="">+# added or removed.<br class="">+<br class="">+add_custom_target(runtimes)<br class="">+<br class="">+file(GLOB entries *)<br class="">+foreach(entry ${entries})<br class="">+  if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt)<br class="">+    get_filename_component(projName ${entry} NAME)<br class="">+    llvm_ExternalProject_Add(${projName} ${entry} USE_TOOLCHAIN)<br class="">+    add_dependencies(runtimes ${projName})<br class="">+  endif()<br class="">+endforeach(entry)<br class="">Index: cmake/modules/LLVMExternalProjectUtils.cmake<br class="">===================================================================<br class="">--- cmake/modules/LLVMExternalProjectUtils.cmake<br class="">+++ cmake/modules/LLVMExternalProjectUtils.cmake<br class="">@@ -29,7 +29,8 @@<br class="">#     Extra targets in the subproject to generate targets for<br class="">#   )<br class="">function(llvm_ExternalProject_Add name source_dir)<br class="">-  cmake_parse_arguments(ARG "USE_TOOLCHAIN;EXCLUDE_FROM_ALL;NO_INSTALL"<br class="">+  cmake_parse_arguments(ARG<br class="">+    "USE_TOOLCHAIN;EXCLUDE_FROM_ALL;NO_INSTALL;ALWAYS_CLEAN"<br class="">    "SOURCE_DIR"<br class="">    "CMAKE_ARGS;TOOLCHAIN_TOOLS;RUNTIME_LIBRARIES;DEPENDS;EXTRA_TARGETS" ${ARGN})<br class="">  canonicalize_tool_name(${name} nameCanon)<br class="">@@ -52,6 +53,10 @@<br class="">    endif()<br class="">  endforeach()<br class=""><br class="">+  if(ARG_ALWAYS_CLEAN)<br class="">+    set(always_clean clean)<br class="">+  endif()<br class="">+<br class="">  list(FIND TOOLCHAIN_TOOLS clang FOUND_CLANG)<br class="">  if(FOUND_CLANG GREATER -1)<br class="">    set(CLANG_IN_TOOLCHAIN On)<br class="">@@ -135,6 +140,14 @@<br class="">    CMAKE_ARGS ${${nameCanon}_CMAKE_ARGS}<br class="">               ${compiler_args}<br class="">               -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}<br class="">+               -DLLVM_CONFIG_PATH=${LLVM_RUNTIME_OUTPUT_INTDIR}/llvm-config<br class="">+               -DLLVM_LIBRARY_OUTPUT_INTDIR=${LLVM_LIBRARY_OUTPUT_INTDIR}<br class="">+               -DLLVM_RUNTIME_OUTPUT_INTDIR=${LLVM_RUNTIME_OUTPUT_INTDIR}<br class="">+               -DLLVM_LIBDIR_SUFFIX=${LLVM_LIBDIR_SUFFIX}<br class="">+               -DLLVM_ENABLE_WERROR=${LLVM_ENABLE_WERROR}<br class="">+               -DPACKAGE_VERSION=${PACKAGE_VERSION}<br class="">+               -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}<br class="">+               -DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}<br class=""></blockquote><br class="">How did you decide which variables need to be passed through like this?<br class="">The set seems somewhat arbitrary, but I may be missing something<br class="">obvious.<br class=""><br class=""><blockquote type="cite" class="">               ${ARG_CMAKE_ARGS}<br class="">               ${PASSTHROUGH_VARIABLES}<br class="">    INSTALL_COMMAND ""<br class="">@@ -152,7 +165,7 @@<br class="">    ExternalProject_Add_Step(${name} force-rebuild<br class="">      COMMAND ${run_build}<br class="">      COMMENT "Forcing rebuild of ${name}"<br class="">-      DEPENDEES configure clean<br class="">+      DEPENDEES configure ${always_clean}<br class=""></blockquote><br class="">I'm not sure I understand what this does. If I had to guess I'd say that<br class="">when ALWAYS_CLEAN is passed the rebuild of the external project always<br class="">invokes clean first, but if it's not passed we'll just invoke the<br class="">external build and allow it to be incremental if appropriate. Is that<br class="">right?<br class=""><br class=""><blockquote type="cite" class="">      DEPENDS ${ALWAYS_REBUILD} ${ARG_DEPENDS} ${TOOLCHAIN_BINS}<br class="">      ${cmake_3_4_USES_TERMINAL} )<br class="">  endif()<br class="">Index: CMakeLists.txt<br class="">===================================================================<br class="">--- CMakeLists.txt<br class="">+++ CMakeLists.txt<br class="">@@ -720,6 +720,8 @@<br class="">  add_subdirectory(tools)<br class="">endif()<br class=""><br class="">+add_subdirectory(runtimes)<br class="">+<br class="">if( LLVM_INCLUDE_EXAMPLES )<br class="">  add_subdirectory(examples)<br class="">endif()<br class="">@@ -730,7 +732,8 @@<br class="">    llvm_ExternalProject_Add(test-suite ${LLVM_MAIN_SRC_DIR}/projects/test-suite<br class="">      USE_TOOLCHAIN<br class="">      EXCLUDE_FROM_ALL<br class="">-      NO_INSTALL)<br class="">+      NO_INSTALL<br class="">+      ALWAYS_CLEAN)<br class="">  endif()<br class="">  add_subdirectory(test)<br class="">  add_subdirectory(unittests)<br class=""><br class=""></blockquote><br class="">_______________________________________________<br class="">llvm-commits mailing list<br class=""><a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a><span class="Apple-converted-space"> </span><<a href="mailto:llvm-commits@lists.llvm.org" class="">mailto:llvm-commits@lists.llvm.org</a>><br class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br class=""><<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a>></blockquote></blockquote></div></blockquote></div><br class=""></body></html>