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

    <tr>
        <th>Summary</th>
        <td>
            14.0.3 libcxx: not possible to build `libcxx` against system installed `lit`
        </td>
    </tr>

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

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

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

<pre>
    https://github.com/llvm/llvm-project/blob/5f66e721ec1d099cf2370235ce122cf47c287308/libcxx/CMakeLists.txt#L980-L992
Looks like currently on 14.x is not possible to build `libcxx` against system installed `lit` like it is in other parts of the LLVM when `libcxx` is not build from mono repo tree. In such situations cmake fails
```console
CMake Warning at benchmarks/CMakeLists.txt:7 (message):
  The libc++ benchmarks are not available in a standalone build.  Please
  migrate to an official build as documented in
  https://libcxx.llvm.org/BuildingLibcxx.html.


-- Linker detection: GNU ld
-- ABI list file not generated for configuration libcxxabi.v1.stable.exceptions.no_new_in_libcxx, `check-cxx-abilist` will not be available.
CMake Error at CMakeLists.txt:982 (add_subdirectory):
  add_subdirectory given source "/utils/llvm-lit" which is not an existing
  directory.


-- Configuring incomplete, errors occurred!
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytVE2PnDgU_DX05akRGGiaA4eZyW4UqRPlsB_HkbEf4LSxW7aZ6cmv32egZ2eSvawUyQL8Va5XVaaz8qUdQ7j4pLhL2O_UBhXGuUuFnaij9dPttb84-w1FoG6nbUevqj8csGY5ilxmTSN6VtQZKyqBOWOiL2vBjnWRHSOA6sT1Sh8Pn_kZT8oHn4YrYRWn5pjtT03DkuxDkt2drD170OqMIGbn0AT9AtZAXqZXUB6MDXCx3qtOIwQL3ay0hOSQbSccMuADV8YH8C8-4ATxm2uN26oQlyz4KkRAZcCGER1cuAsebA_Ug9Ppr8_wPKJ5D70RWA_tnZ1gssaCw4uF4BBT-GTAz2IEr8LMg7LGg5ioZOi50n6tkZDWJmjaalxHF2Xgb-6MMgNwOgWNGCfuzv5n3Yq7GhJ2nNB7PmDCmmjfAgPwB_GPlBN2T-0NDHCHC3_-RGR4VJCq50D6GMm1NbhWlgJ81cg93hAnNTgeFr05ydX3SiiuNxm4B2nFPJFVpLEyt03vU7VqmMYgpdYNNHIfd1Opp3VmDJNON33ePPd7OClzJn8kBkofKUqY8PHLn6Dl65K7-09UMnneK72WOKDByJlssg5I6F4Ns1scgZUL71T6lKdUPAmR4lXgZfErNfbR4POjMo-31D7EFIgRxXlP_T3tjIfFQDwrrddI4L-qpm8N_c05IkB2_uRgc2TRQy7lo587qRyVZ93LezN_nIVBPVEqvZ2dQNrOSMk5xGhttzQmnDHKrqIUbnkl0_BKJ5PaN9xXwP_W_GETLEZRGfoXXDTJH5XAWA_dE7FcT5mw_IdQr92dbAvZFA3fBRU0tnR_s7TYpI8O_pKLvJud_v-_L-X9jFGwqjoU-W5sWV2WXcG7TDTsmMuykoKG-rosuMyPjO3IVtS-Tar7pPqwUy3LGMsqxvK8LKs6rZFjJ44ZNjmXNYqkzHCiMLzGfefahUM3D54m9ZKC10lOKgwG8YbP5zBa1561Fd_xvFvotgvXfwAaMNqV">