Xiaochu Liu via llvm-dev
2015-Sep-09 19:21 UTC
[llvm-dev] clang invokes assembler when generating obj file?
Dear there, I'm trying to use clang to invoke my backend to generate obj code using command: clang -target x-linux-gnu global.c -c But it shows me an error: clang: error: assembler command failed with exit code 1 (use -v to see invocation) I have assembler setup in my backend but it is incorrectly setup (not currently using any assembler). Is there a way for clang to not invoke assembler to generate obj code? Thanks, Xiaochu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150909/a9ac0f99/attachment.html>
Tom Stellard via llvm-dev
2015-Sep-09 19:30 UTC
[llvm-dev] clang invokes assembler when generating obj file?
On Wed, Sep 09, 2015 at 07:21:30PM +0000, Xiaochu Liu via llvm-dev wrote:> Dear there, > > I'm trying to use clang to invoke my backend to generate obj code using > command: > > clang -target x-linux-gnu global.c -c >Try passing the -fintegrated-as option. -Tom> But it shows me an error: > > clang: error: assembler command failed with exit code 1 (use -v to see > invocation) > > I have assembler setup in my backend but it is incorrectly setup (not > currently using any assembler). Is there a way for clang to not invoke > assembler to generate obj code? > > Thanks, > Xiaochu> _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Xiaochu Liu via llvm-dev
2015-Sep-09 19:39 UTC
[llvm-dev] clang invokes assembler when generating obj file?
Nice! Thanks, Tom. It works. On Wed, Sep 9, 2015 at 12:30 PM Tom Stellard <tom at stellard.net> wrote:> On Wed, Sep 09, 2015 at 07:21:30PM +0000, Xiaochu Liu via llvm-dev wrote: > > Dear there, > > > > I'm trying to use clang to invoke my backend to generate obj code using > > command: > > > > clang -target x-linux-gnu global.c -c > > > > Try passing the -fintegrated-as option. > > -Tom > > > But it shows me an error: > > > > clang: error: assembler command failed with exit code 1 (use -v to see > > invocation) > > > > I have assembler setup in my backend but it is incorrectly setup (not > > currently using any assembler). Is there a way for clang to not invoke > > assembler to generate obj code? > > > > Thanks, > > Xiaochu > > > _______________________________________________ > > LLVM Developers mailing list > > llvm-dev at lists.llvm.org > > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150909/2e27057a/attachment.html>