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

    <tr>
        <th>Summary</th>
        <td>
            Put in appropriate checks in the libc CMake setup if it cannot be built with non-clang compilers anymore
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            cmake,
            libc
      </td>
    </tr>

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

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

<pre>
    Instead of mysteriously failing while building, it is better to provide the users a good error message when they attempt to build with an unsupported compiler.

@gchatelet - I am assigning this to you because IIRC, the memory functions use some features which are only available in clang? The resolution for this bug need not actually be to error out from CMake. We can consider putting in alternate code paths for non-clang compilers if it makes sense. Also, feel free to assign it back to me to actually do the work.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskk-L7DYQxD-NfGl28Mp_dubgw2YfA3sIhBDIuS21bWVkyahbu_jbB9mTl8u72NBIpfpVFzK7ORANqvtNaT2bBYU8idJadT8qzLLENLD7QrNgsAmrMdp9-AwshBbiBOvOQsnFzH6HCZ13YYbvxXmCMTtvXZiV_gAn4BhGEqEEEmFL8ctZAlkIMlNiQJhjtEApxQQrMeNM8L1QKGd2QBFaNyl3D134drIABsiB87bFJGTBxHVzntJF1T9U_f78tvVPLniBT8AVTu5iVRbHRXSPGUYymJng8_PPj2K6mFtpjWmHKQcjLgYuboHjSjARSk7EhdYsgIkgBr8DfqHzOHoCF8B4DLNq7vDXQpCIo89FBqaYzqfHPEMgshCiABrJ6P0OIxVPZxYxC0wprvDxOz7oAn8TGAxgYmBnKcGWRQqJC4BeKAUUAhMtwYay8PFUiOHlsPIzIgY3la2s-CAGpsB0gXfPsYBPRB6mRIeLM6tydkTzKJP1nP9n1sYjqe-YHpfKDo29NTesaHjt3-qmb7uurpbhtekJu9t4a6_Xt_6tntpOY3fFdrSdebVd5QZda_2q617r-lb3l75B89bomtpbO9n-qtqaVnT-4v3XeolprhxzpqG7Nf218jiS52ePTaEqHdYfSmvvRvMsdBrK5Zcxz6za2jsW_l9OnHga_shyRLltKW7JHWEuZB5cpoWzyJ27ACbJ2zNIg6GscDx7L2c_f5U7hn2Niaqc_LCIbKyad6XvSt9nJ0seLyauSt-LrefvZUvxHzKi9P1AZqXvB_W_AQAA__8HpErm">