<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 9, 2018, at 11:48 AM, Roman Lebedev <<a href="mailto:lebedev.ri@gmail.com" class="">lebedev.ri@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">On Tue, Oct 9, 2018 at 9:41 PM Chris Bieneman <</span><a href="mailto:chris.bieneman@me.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-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">chris.bieneman@me.com</a><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">> wrote:</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" 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-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""><br class=""><br class="">On Aug 30, 2018, at 2:32 AM, Roman Lebedev via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a>> wrote:<br class=""><br class="">Author: lebedevri<br class="">Date: Thu Aug 30 02:32:09 2018<br class="">New Revision: 341045<br class=""><br class="">URL: <a href="http://llvm.org/viewvc/llvm-project?rev=341045&view=rev" class="">http://llvm.org/viewvc/llvm-project?rev=341045&view=rev</a><br class="">Log:<br class="">Revert "[CMake] Use LLVM_ENABLE_IDE instead of CMAKE_CONFIGURATION_TYPES"<br class=""><br class="">That resulted in the check-llvm-* targets not being avaliable<br class="">in the QtCreator-configured build directories.<br class=""><br class="">Moreover, that was a clearly non-NFC change, and i can't find any review<br class="">for it.<br class=""><br class=""><br class="">And no discussion on the revert either?<br class=""><br class="">This wasn't intended to be an NFC change. I apologize if it caused an issue with QtCreator, but a discussion would have been warranted before the revert.<br class=""><br class="">I've been making lots of non-NFC changes to CMake without review for years, which is consistent with the developer policy (See point #4 <a href="https://www.llvm.org/docs/DeveloperPolicy.html#code-reviews" class="">https://www.llvm.org/docs/DeveloperPolicy.html#code-reviews</a>). This was a fairly small and isolated change. Again, I apologize that it caused you problems.<br class=""><br class="">The problem this was trying to address is that Visual Studio doesn't handle the target explosion caused by these options well, so using LLVM_ENABLE_IDE to filter them down makes sense. Obviously you care about those targets existing in QTCreator, but are setting LLVM_ENABLE_IDE.<br class=""></blockquote><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Completely hiding build targets is not a good idea.</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">That option should improve expirience of the IDE users, but not</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">degrade the expirience</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">of those who use IDE plsu directly operate in the command-line with</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">the build configured by IDE.</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""></div></blockquote><div><br class=""></div><div>Actually, disabling the target generation is exactly what we need. Both Visual Studio and Xcode have drop-down menus that are populated with targets and have maximum sizes that are too small to display all the LLVM targets. Excluding the generation of these targets results in more manageable IDE experiences.</div><div><br class=""></div><div>Presently this is handled by the `CMAKE_CONFIGURATION_TYPES` check, however that doesn't work with Visual Studio 2017's CMake integration which generates a ninja build, but populates the IDE with the output from the CMake server.</div><div><br class=""></div><div>I suspect the actual solution to the problem you're having is that we need to change how LLVM_ENABLE_IDE is defaulted. It should likely default `On` only for Xcode and Visual Studio generators, and it should probably default `Off` for `CMAKE_EXTRA_GENERATOR`.</div><div><br class=""></div><div>The other issue is that the current use of `LLVM_ENABLE_IDE` in LLVMProcessSources.cmake probably doesn't need to be there at all. I'm fairly certain everything it is doing there is safe to do regardless of the generator, and should just be done by default.</div><div><br class=""></div><div>-Chris</div><br class=""><blockquote type="cite" class=""><div class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Perhaps you meant to use<span class="Apple-converted-space"> </span></span><a href="https://cmake.org/cmake/help/v3.0/prop_tgt/FOLDER.html" 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-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://cmake.org/cmake/help/v3.0/prop_tgt/FOLDER.html</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" 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-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Are you setting LLVM_ENABLE_IDE deliberately?<br class=""></blockquote><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">No, it is autodetected.</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" 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-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">I'd like to come to a solution that works for your needs as well as my own.<br class=""><br class="">-Chris<br class=""></blockquote><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Roman.</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" 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-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">This reverts commit rL340435.<br class=""><br class="">Modified:<br class=""> llvm/trunk/CMakeLists.txt<br class=""> llvm/trunk/cmake/modules/AddLLVM.cmake<br class=""> llvm/trunk/cmake/modules/CMakeLists.txt<br class=""> llvm/trunk/tools/xcode-toolchain/CMakeLists.txt<br class=""><br class="">Modified: llvm/trunk/CMakeLists.txt<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=341045&r1=341044&r2=341045&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=341045&r1=341044&r2=341045&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/CMakeLists.txt (original)<br class="">+++ llvm/trunk/CMakeLists.txt Thu Aug 30 02:32:09 2018<br class="">@@ -978,7 +978,7 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)<br class=""> add_custom_target(llvm-headers DEPENDS intrinsics_gen)<br class=""> set_target_properties(llvm-headers PROPERTIES FOLDER "Misc")<br class=""><br class="">- if (NOT LLVM_ENABLE_IDE)<br class="">+ if (NOT CMAKE_CONFIGURATION_TYPES)<br class=""> add_llvm_install_targets(install-llvm-headers<br class=""> DEPENDS llvm-headers<br class=""> COMPONENT llvm-headers)<br class="">@@ -988,7 +988,7 @@ endif()<br class=""># This must be at the end of the LLVM root CMakeLists file because it must run<br class=""># after all targets are created.<br class="">if(LLVM_DISTRIBUTION_COMPONENTS)<br class="">- if(LLVM_ENABLE_IDE)<br class="">+ if(CMAKE_CONFIGURATION_TYPES)<br class=""> message(FATAL_ERROR "LLVM_DISTRIBUTION_COMPONENTS cannot be specified with multi-configuration generators (i.e. Xcode or Visual Studio)")<br class=""> endif()<br class=""><br class=""><br class="">Modified: llvm/trunk/cmake/modules/AddLLVM.cmake<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=341045&r1=341044&r2=341045&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=341045&r1=341044&r2=341045&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)<br class="">+++ llvm/trunk/cmake/modules/AddLLVM.cmake Thu Aug 30 02:32:09 2018<br class="">@@ -659,7 +659,7 @@ macro(add_llvm_library name)<br class=""> ${install_type} DESTINATION ${install_dir}<br class=""> COMPONENT ${name})<br class=""><br class="">- if (NOT LLVM_ENABLE_IDE)<br class="">+ if (NOT CMAKE_CONFIGURATION_TYPES)<br class=""> add_llvm_install_targets(install-${name}<br class=""> DEPENDS ${name}<br class=""> COMPONENT ${name})<br class="">@@ -890,7 +890,7 @@ macro(add_llvm_tool name)<br class=""> RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR}<br class=""> COMPONENT ${name})<br class=""><br class="">- if (NOT LLVM_ENABLE_IDE)<br class="">+ if (NOT CMAKE_CONFIGURATION_TYPES)<br class=""> add_llvm_install_targets(install-${name}<br class=""> DEPENDS ${name}<br class=""> COMPONENT ${name})<br class="">@@ -928,7 +928,7 @@ macro(add_llvm_utility name)<br class=""> install (TARGETS ${name}<br class=""> RUNTIME DESTINATION ${LLVM_UTILS_INSTALL_DIR}<br class=""> COMPONENT ${name})<br class="">- if (NOT LLVM_ENABLE_IDE)<br class="">+ if (NOT CMAKE_CONFIGURATION_TYPES)<br class=""> add_llvm_install_targets(install-${name}<br class=""> DEPENDS ${name}<br class=""> COMPONENT ${name})<br class="">@@ -1390,7 +1390,7 @@ function(add_lit_testsuite target commen<br class="">endfunction()<br class=""><br class="">function(add_lit_testsuites project directory)<br class="">- if (NOT LLVM_ENABLE_IDE)<br class="">+ if (NOT CMAKE_CONFIGURATION_TYPES)<br class=""> cmake_parse_arguments(ARG "" "" "PARAMS;DEPENDS;ARGS" ${ARGN})<br class=""><br class=""> # Search recursively for test directories by assuming anything not<br class="">@@ -1449,7 +1449,7 @@ function(llvm_install_library_symlink na<br class=""> CODE "install_symlink(${full_name} ${full_dest} ${output_dir})"<br class=""> COMPONENT ${component})<br class=""><br class="">- if (NOT LLVM_ENABLE_IDE AND NOT ARG_ALWAYS_GENERATE)<br class="">+ if (NOT CMAKE_CONFIGURATION_TYPES AND NOT ARG_ALWAYS_GENERATE)<br class=""> add_llvm_install_targets(install-${name}<br class=""> DEPENDS ${name} ${dest} install-${dest}<br class=""> COMPONENT ${name})<br class="">@@ -1482,7 +1482,7 @@ function(llvm_install_symlink name dest)<br class=""> CODE "install_symlink(${full_name} ${full_dest} ${LLVM_TOOLS_INSTALL_DIR})"<br class=""> COMPONENT ${component})<br class=""><br class="">- if (NOT LLVM_ENABLE_IDE AND NOT ARG_ALWAYS_GENERATE)<br class="">+ if (NOT CMAKE_CONFIGURATION_TYPES AND NOT ARG_ALWAYS_GENERATE)<br class=""> add_llvm_install_targets(install-${name}<br class=""> DEPENDS ${name} ${dest} install-${dest}<br class=""> COMPONENT ${name})<br class=""><br class="">Modified: llvm/trunk/cmake/modules/CMakeLists.txt<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/CMakeLists.txt?rev=341045&r1=341044&r2=341045&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/CMakeLists.txt?rev=341045&r1=341044&r2=341045&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/cmake/modules/CMakeLists.txt (original)<br class="">+++ llvm/trunk/cmake/modules/CMakeLists.txt Thu Aug 30 02:32:09 2018<br class="">@@ -132,7 +132,7 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)<br class=""> PATTERN LLVM-Config.cmake EXCLUDE<br class=""> PATTERN GetHostTriple.cmake EXCLUDE)<br class=""><br class="">- if (NOT LLVM_ENABLE_IDE)<br class="">+ if (NOT CMAKE_CONFIGURATION_TYPES)<br class=""> # Add a dummy target so this can be used with LLVM_DISTRIBUTION_COMPONENTS<br class=""> add_custom_target(cmake-exports)<br class=""> add_llvm_install_targets(install-cmake-exports<br class=""><br class="">Modified: llvm/trunk/tools/xcode-toolchain/CMakeLists.txt<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/xcode-toolchain/CMakeLists.txt?rev=341045&r1=341044&r2=341045&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/xcode-toolchain/CMakeLists.txt?rev=341045&r1=341044&r2=341045&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/tools/xcode-toolchain/CMakeLists.txt (original)<br class="">+++ llvm/trunk/tools/xcode-toolchain/CMakeLists.txt Thu Aug 30 02:32:09 2018<br class="">@@ -100,7 +100,7 @@ add_llvm_install_targets(install-xcode-t<br class=""> PREFIX ${LLVMToolchainDir}/usr/)<br class=""><br class="">if(LLVM_DISTRIBUTION_COMPONENTS)<br class="">- if(LLVM_ENABLE_IDE)<br class="">+ if(CMAKE_CONFIGURATION_TYPES)<br class=""> message(FATAL_ERROR "LLVM_DISTRIBUTION_COMPONENTS cannot be specified with multi-configuration generators (i.e. Xcode or Visual Studio)")<br class=""> endif()<br class=""><br class=""><br class=""><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><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</blockquote></div></blockquote></div><br class=""></body></html>