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

    <tr>
        <th>Summary</th>
        <td>
            [clang] -Xmicrosoft-windows-sys-root doesn't include Windows Kits include directories
        </td>
    </tr>

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

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

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

<pre>
    Currently I have to manully include directories in order to cross compile to windows-msvc target with clang

add_compile_options(-Xmicrosoft-windows-sys-root "/home/mccakit/dev/msvc-wine")
add_link_options(-Xmicrosoft-windows-sys-root "/home/mccakit/dev/msvc-wine")
include_directories("/home/mccakit/dev/msvc-wine/Windows Kits/10/Include/10.0.26100.0/um")
include_directories("/home/mccakit/dev/msvc-wine/Windows Kits/10/Include/10.0.26100.0/shared")
include_directories("/home/mccakit/dev/msvc-wine/Windows Kits/10/Include/10.0.26100.0/shared")
include_directories("/home/mccakit/dev/msvc-wine/Windows Kits/10/Include/10.0.26100.0/winrt")
include_directories("/home/mccakit/dev/msvc-wine/VC/Tools/MSVC/14.44.35207/include")

Clang should include the directories I'm including manually by defauly when -Xmicrosoft-windows-sys-root option is passed
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzkVMFq3DAQ_Rr5ItbIY2u9e_Bhm2AIpaeWtrcgS7KtRpYWjbzL_n2R7aQplNBDSw89mcF6780M855ANIPTuiH8HeH3mZjj6EMzSSmeTMw6r27N3RyCdtHe6AMdxUXT6Okk3GztjRon7aw0VSZoGX0wGqlx1AelQ3ong0ek0k9nYxfg1Tjlr7ib8CJpFGHQkV5NHKm0wg2EnQg7CaUeN8ijP0fjHRI47L5OJtH5Pu6eWfCGu-B9pASAQDv6SRNot-4JtEpfUo0XmSB6eXXcFKxxT3-JftvK46utEDj8Lkn7ZZWn701EAm3BCLQPK-VS5iyHfcFYnn7M0z-RxVEErf436atxIf4p5c93BNpP3tuk--HjUhZVXlV5yYHVBFrz3McmSNjpLtmE4uhnq17cF8efHfhAoJ62v8YNi1tFsmt3o0r3YrY3eh21o28e_eoNapCeBaJWmWpKdSyPItNNUfMSin1d7rOxKY-9Emrfl4e6AtYdhOihkFweCil6dVSZaYABZzUAsPLA93l5ZN2-4kL2qqwr3pOK6UkYm1t7mXIfhswgzropOCsYz6zotMUlowDWoABIcRWaBNh184CkYtZgxB8U0US7BNuK4Pdvj6u8Rkegji9rfX0av0q6bA62GWM8IylPBFoC7WDiOHe59BOBNnWyfXbn4L9pmQ5hmWw5tXW4SwPfAwAA__9Y4c99">