Clang Build error

can I debug clang component with the CMAKE_BUILD_TYPE=MinSizeRel.
please reply. Thanks in advance.

from India


you can of course debug it, but the build does not contain Debug
information. The code will be optimized and not correspond 1to1 to
source code.

You can of course use std::cout and friends to see whats going on.
Please note, that `RelWithDebInfo` exists, too. But that build type will
probably suffer from high RAM usage.


I’m not sure if using ninja is an option, but if you’re using it, you can also configure cmake with -DLLVM_PARALLEL_LINK_JOBS=1 to keep the RAM consumption down during linking. Although if you’re running out of RAM on a single link job, this of course won’t help.