<div dir="ltr">Nice! Thanks, Tom. It works.</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 9, 2015 at 12:30 PM Tom Stellard <<a href="mailto:tom@stellard.net">tom@stellard.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Sep 09, 2015 at 07:21:30PM +0000, Xiaochu Liu via llvm-dev wrote:<br>
> Dear there,<br>
><br>
> I'm trying to use clang to invoke my backend to generate obj code using<br>
> command:<br>
><br>
> clang -target x-linux-gnu global.c -c<br>
><br>
<br>
Try passing the -fintegrated-as option.<br>
<br>
-Tom<br>
<br>
> But it shows me an error:<br>
><br>
> clang: error: assembler command failed with exit code 1 (use -v to see<br>
> invocation)<br>
><br>
> I have assembler setup in my backend but it is incorrectly setup (not<br>
> currently using any assembler). Is there a way for clang to not invoke<br>
> assembler to generate obj code?<br>
><br>
> Thanks,<br>
> Xiaochu<br>
<br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br>
</blockquote></div>