<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/121060>121060</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            `CLANG_BUILD_TOOLS=OFF` still builds clang tools (though doesn't install them)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          dustdfg
      </td>
    </tr>
</table>

<pre>
    Hello!

I need only clang without all additional tools. I pass `CLANG_BUILD_TOOLS=OFF` to CMake but it still builds the tools (It seems that they aren't added into the install dir though...) I've checked `CMakeCache.txt` and saw that when I pass `CLANG_BUILD_TOOLS=OFF` it is recognized and set to `OFF` but all other `CLANG_TOOL_*_BUILD` variables are still `ON` as by default. I have low-end hardware so when I use Full LTO I spend much time on each program. I've seen that it still builds them because time consumption is the same and I've seen in terminal `Linking CXX executable bin/clang-import-test`. I am running `ninja install` (if thats necessary information).  I tried but couldn't find them inside build dir but they are built (and even not saved?)
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMVMGO4zYM_RrlQsRQ5MRZH3zIzsBtgHRz6BbY24C2aFs7shRIdLLp1xeyk04LFMWeAijk43uPj8YYTe-IKrH7LHavK5x48KHSU2Td9avG63v1K1nrhdoIeRDycARHpME7e4fWouvhZnjwEwNaC6i1YeMdWmDvbczgCBeMEUQhX06HL7-8ff7jeHp9-3o-n34X-eu5rkUhgT28_IbvBM3EYBgiG2uhmYzVEXigBQyE-nRkiERjekVOf90BAzmh9pyGkwbj2M89xkVOnLQJkBj2Q5ZlQpVwFGp_JWgHat9Jz9TS8BdsB8r4BydG6DREvC1jbgO5nxNiGEyEQK3vnfmT9IJDnBSKQj6qmodbngcKH4gJ602owwKdCq8YDDaWYhL5cCXBfJkpRmjuoKnDyXIyesArgfW3NTkNAwZ9m7v8k_8UCerJWjh9PcMR4iXVjVM7AJuRwDsgbAe4BN8HHLOnT5HILT78x2ZGaKjFhDxjtN7FabykCCQj0hoijjTb8E8444ApjCYFRRTyZNy7cT28fPsG9IPaiZNqaIwTqp5TtjbjxQdeM8W0nyQXRwiTc6lPFNIZ9x2fO0_2CPXJdDPvCI5aihHDHYzrfBgxERSqzACOwMGQnnfS-snqJUudcXrRZ1w0mhbJc5ZS5TN48zOnWUkhXcmB8wwRr6RFXgtVrnSV6zIvcUXVZp_v5G5fqt1qqHTTSpTbXUPbspFdjlg2uaRW4aZsi65bmUpJtd0otd0UuZK7jBpqtvtC77tSotYbsZU0orGZtdcx86FfmRgnqjZqIwu5stiQjfNlKzWbKJRKRx6q1LBupj6KrbQmcvyAYMOWqv9P-b9CsHwE_j7Q5dJAe4qLk88zTGYmP6Zgq4H5EkV-EKoWqu4ND1OTtX4Uqk5EHj_rS_DfqWWh6llYFKp-aLtW6q8AAAD__3hAj08">