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

Richard Smith richard at metafoo.co.uk
Wed May 15 17:57:50 PDT 2013


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/20130515/6580e0df/attachment.html>


More information about the cfe-dev mailing list