Possible to enable libc++ debug checks?

十年热恋 提交于 2019-12-04 20:15:12

This is definitely a work in progress. There's a (very old) status page here that I need to update.

The idea is that users will interact with it by setting the preprocessor symbol _LIBCPP_DEBUG Just defining it will give basic tests, setting it to a number > 1 will give more extensive tests.

However, as you have found, it is currently non-functional.

It appears some progress was made on this in the meantime. At least there is some documentation now that doesn't state that the debug mode is horribly broken.

As stated in the docs I link, the debug mode shall be controlled by defining _LIBCPP_DEBUG to either 0 or 1; the macro _LIBCPP_DEBUG_LEVEL appears to be some internal switch.

However, looking at question like this one, spurious compilation errors can and do still happen.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!