[cfe-dev] Bug 16022 - Clang ignores include path arguments when compiling assembly files

Hannes Landeholm hannes at omnicloud.com
Fri May 17 06:40:51 PDT 2013


Thanks.

This was a solution I figured was possible (by sending the arguments
directly to the assembler) but I couldn't find any documentation about it.

I will see if I have time to create a patch myself. I solved it by
switching to "as" for now.

--

Hannes Landeholm


On Thu, May 16, 2013 at 2:57 AM, Richard Smith <richard at metafoo.co.uk>wrote:

> On Wed, May 15, 2013 at 5:46 PM, Hannes Landeholm <hannes at omnicloud.com>wrote:
>
>> I just want to direct some attention to this bug as I just got hit by it
>> and feel like it should be a one liner to fix if you know the clang source
>> code. I don't so my attempt to figure out a patch failed. Right now it
>> forces me to switch to another compiler and it would be a lot of work for
>> me to do that.
>>
>> http://llvm.org/bugs/show_bug.cgi?id=16022
>>
>> The steps to reproduce is also really simple.
>>
>> I would also be interested in someone knows of a workaround or can point
>> me in the general direction of where the arguments are passed to the
>> assembler in the clang source tree.
>>
>
> Workaround: add -Xassembler before your -I arguments.
>
> If you'd like to fix this, the relevant code is in lib/Driver/Tools.cpp;
> the right place is probably somewhere in the vicinity of the various
> Assemble::ConstructJob functions.
>
>
>> Thanks for reading,
>>
>> --
>>
>> Hannes Landeholm
>>
>>
>>
>> _______________________________________________
>> 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/20130517/4e41164f/attachment.html>


More information about the cfe-dev mailing list