[cfe-dev] Passing a triple to libclang

Eli Bendersky eliben at google.com
Wed Jun 4 14:21:11 PDT 2014


On Wed, Jun 4, 2014 at 2:10 PM, Reid Kleckner <rnk at google.com> wrote:

> I thought you just feed cflags to libclang somewhere.  That isn't working?
>  There are some things like MS inline assembly that require the X86 MC
> libraries to parse, but I thought we emit a diagnostic for that now,
> without crashing.
>
>
Yep, as discussed on IRC, I do pass '-triple', which causes the crash :)


>
> On Wed, Jun 4, 2014 at 12:57 PM, Eli Bendersky <eliben at google.com> wrote:
>
>> Hello,
>>
>> Currently libclang will refuse to parse code that contains
>> target-specific builtin calls, and as far as I can tell it does not support
>> passing in a triple (I get a "...libclang: crash detected during parsing").
>>
>> Has anyone else encountered this / filed a bug? It seems that
>> http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20131104/092632.html
>> is related but I didn't find any resolution from it.
>>
>> Thanks in advance,
>> Eli
>>
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140604/b8baf290/attachment.html>


More information about the cfe-dev mailing list