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

    <tr>
        <th>Summary</th>
        <td>
            Support running the test suite from Darwin host on a non-Darwin target
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    The LLDB test suite supports running [remotely](https://lldb.llvm.org/resources/test.html#running-the-test-suite-remotely). We have at least tow bots that run Linux and Windows as the host OS and target a remote Linux machine. On Darwin platforms, we rely on this functionality to test remote Darwin devices.

However, we don't seem to support targeting a non-Darwin device from a Darwin host. We use the host platform to pick the builder. Windows and Linux both use the default builder, so there it goes unnoticed. But on Darwin we have a custom one , which for example uses `xcrun` to find the SDK, which doesn't apply when targeting a non-Darwin device. That's the first issue I ran into, and I worked around it by using `lldbplatformutil.getPlatform()` instead. 
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8VMGOqzgQ_BpzaQWBGRJy4DCzUbRvd6S30jzpnQ1usHeMjex2mPz9yoRMZi57QtB0uaq6yyIEPVrEltUvjPO_TngxGkeFHhnnrD5lIpJyvv1ayTonr-0vhfD6enoBwkAQoiaEEOfZeQrgo7XajsDqF4-TIzRXVp8YbxTRHFj1zPiZ8bMxssuNuUy58yPjZ4_BRd9jYPycYHNFk2G82uB2pHCXvu_W43af0PyYw28EJS4IgsCgCATkFugcBSAlKDGCV23jBwgr4be20i0BRKoiKBcIfr6tJRJ-RAIBN_StaRK90hZz-GnhJPyiLcxG0OD8FBj_AxYEj-YKzgIpHWCItiftrDCarkDu5tIGuQFIvOgeQ86KZ1Y8_-kWvKDfwKSzjB8IAuKU2jdnN3bJWgHW2d03KBi8m0Dc8ZOq1ZcY8CHzTjuhzrp_Xytd1Eaizx_GWLkp7xypTwSJg4iG7v8nssGlikfQBKPDANFaR7pHmcNLpOTIxme5Twj6GMhN4CzCqlfpXsHgPOCHmGazMg7A9sVH76Nl-yKRHXSajkJ4O_396JIOw80qMc_mCotC-_8u5fBLCWL8cJv9oH0g0CFEhB_ghQVtyaUDkgc_YHH-HSUI76KVSWR3hRjW5d4XaYHvhkbSJh-R_tneGW8YPyby2gZCIXPIZFvJY3UUGbbloa7qQ1kfm0y1neiauhRdI-onbLoeh2q_r7CWT0VXdaLMdMsLXhcHvudVWZVNXjUDYtU0ddEMddGX7KnASWjzGadsldSWddEU-8yIDk3YYm5xuQneMu7b1LTr4hjYU2F0oPCAIU0G27dt_-7BTs59Cf66eF_WLk39m_W3iWTRm_b7FTBqUrHLezet98Hl_tjN3v2LPTF-XqmmK2HTcmn5fwEAAP__FCegJA">