Bug 16022 - Clang ignores include path arguments when compiling assembly files

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.

Thanks for reading,

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.