[LLVMdev] Ideas for making llvm-config --cxxflags more useful
Mehdi Amini
mehdi.amini at apple.com
Mon Aug 3 10:49:05 PDT 2015
> 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).
If as Chris said it is *required* for ABI compatibility, my understanding is that you don’t really have any choice: if you want to compile/link at the C++ level with LLVM you’ll have to include this flag or you’ll run into strange runtime issue.
—
Mehdi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150803/11297083/attachment.html>
More information about the llvm-dev
mailing list