[LLVMdev] Ideas for making llvm-config --cxxflags more useful

Chris Bieneman beanz at apple.com
Mon Aug 3 10:48:38 PDT 2015

The problem with not including it is that if your LLVM build is not ABI compatible with different values of NDEBUG.


> On Aug 3, 2015, at 10:40 AM, Schlottke-Lakemper, Michael <m.schlottke-lakemper at aia.rwth-aachen.de> wrote:
>>> The only question I want to raise is, what about NDEBUG? There are headers that conditionalize on NDEBUG, which could lead to ABI incompatibility in the C++ API.
>> Is it something that can be fixed or would it be too complicated to handle? 
>> It would be nice in general to be able to link a “Non assert” build of Clang with an “Assert" version of  LLVM (and vice-versa). 
> From my user perspective, it would be desirable to set as few flags as possible. NDEBUG is used outside of clang/llvm as well (including our software), so if it were returned by llvm-config, it would effectively preclude us from using llvm-config (as it would effectively turn off all checks even when desired).
> Michael

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150803/791c6ce7/attachment.html>

More information about the llvm-dev mailing list