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

    <tr>
        <th>Summary</th>
        <td>
            libcxx is compiled without debug support
        </td>
    </tr>

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

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

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

<pre>
    I'm trying to build using ubuntu, apt, libc++, and debug mode, but it seems to be getting built without support enabled (I think LIBCXX_ENABLE_DEBUG_MODE_SUPPORT must be turned off). Can LIBCXX_ENABLE_DEBUG_MODE_SUPPORT be enabled on builds?

A simple repro should be making a `test.cpp` that includes something (e.g., `#include <string>`) then running:
```
clang++ '-stdlib=libc++' -g '-D_LIBCPP_DEBUG=1' test.cpp
```

I particularly noticed this on apt; for example, please see:
https://github.com/carbon-language/carbon-lang/runs/8259658371?check_suite_focus=true

The particular error there is:
```
/usr/lib/llvm-15/bin/../include/c++/v1/__debug:24:5: error: "Enabling the debug mode now requires having configured the library with support for the debug mode"
```


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFU1lvpDAM_jXhJSpiwgDlgYdOZ2ZVaY9qt5X6hgIYJltI2Bw9_v3aTKeHtIcIzmHH_vw5bkz3XF0xUUzc22elB-4Nb4IaOx4cbUMTtA9MXHI5e5pG1bRMbJaBh7rjHTRh4JPpgE6a4Lny3AFMbnEGfADvyRf59fxR-YNBIxfm2VjPQctmhI4zcX7F_UHpe_75anN5d1fvvl5sPu_q7W5z-6n-8m27q3_cXl9_-37Dp-A8efbBarxq-p6JMuaXUv__Ll47hTT6mKtj6Z4lW5ZcHOUFd2qaR-AWZmu4Q7xICF6c5D0lIjnLEw_Ox-084xJhS8xat2PowHFnJqBEBsoJ4iEmXtCMifTFhrP00nmLJizdLZoSfYDmNmi9nL4gId1xLNt2lKhc2EffxZnzHdaDpdv3VSn42bBotzWRcX19ZAGtVqR8xf2nAEd5xWdpvWrDKO34zLXBNdKFOTnijF5CuuG9sRyeJBFFCeIkHVDhX9EfvJ8d7cQex4CFD03cmgk3rbSN0WeUT5ADfDzBHRLhcDoXWZln52mxwhK1B2jvaxeUh7o3bUDXW28DvId-c4B34DlYiyiRWgtcub_RioGCsyiJTJTjw3S2ynDVKI0yxgLuXypHQE9E7x-Q0H1dLw2AvsUaRYb_MSwtmBA7emxLZyG0t15BVh_xff0KyuKTOcgHMmmN7tUQ7EI2UK9ZaZ-Xlnntl_6Y0Ie2E_8oZgTVKs9FTlSuoq5KuzItZeSVH6Gid_P0hNRg6GlW1BSn_jz6f4kaBTtW_ygnUXZiDlvmJ7SeOHMuAJUxK_K0iA4VrLNcdlkBTdK2SZphe6xz0eRlKaHrmzQaZQOjq1i2Ydk2UpVIhEhK_JJVnq7i86Jokq4v102fdG0p2DqBSaoxpsCxsUNkqwUDQneoHJXz7k0pnVODBjj5lwFTtdVPoycwj9ECt1qw_gYPE5mN">