[cfe-dev] [ping] extra libclang functionality for the xdress project
Dmitri Gribenko
gribozavr at gmail.com
Wed Nov 13 11:51:44 PST 2013
On Wed, Nov 13, 2013 at 11:39 AM, Geoffrey Irving <irving at naml.us> wrote:
> On Wed, Nov 13, 2013 at 11:29 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
>> On Wed, Nov 13, 2013 at 11:17 AM, Geoffrey Irving <irving at naml.us> wrote:
>>> Great! There is no hurry, since I'm not blocked, and I still have
>>> various other patches to clean up. When you do get around to them,
>>> feel free to ask for large rewrites, given that this is intended to be
>>> a long term stable API.
>>>
>>> Quick configuration question: when Anthony tried to compile my code he
>>> ran into a bunch of non-C99 errors:
>>>
>>> c-index-test.c:1299:3: error: ‘for’ loop initial declarations are
>>> only allowed in C99 mode
>>>
>>> Is there a configure option to make llvm+clang builds stricter so that
>>> I can catch such errors in future?
>>
>> CMake build passes -std=c89 for c-index-test.
>
> I don't see that, which I suppose means I'm not building with cmake.
> Does toplevel "configure" as recommended in the "Getting Started" page
> set up a different build system?
>
> cd llvm
> ./configure
> make
Yes, this is different. LLVM and Clang support two build systems:
autoconf-based (./configure && make), and CMake (cmake <options> &&
<make/ninja/xcodebuild>).
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the cfe-dev
mailing list