[cfe-dev] x86_64 with -emit-llvm

Daniel Dunbar daniel at zuster.org
Sun Oct 25 13:56:01 PDT 2009


On Sat, Oct 24, 2009 at 2:03 PM, Renato Golin <rengolin at systemcall.org> wrote:
> Hi all,
>
> A few newbie questions...
>
> What am I missing here?
>
> $ clang -emit-llvm anyfile.c
> clang: error: 'x86_64-unknown-linux-gnu': unable to pass LLVM bit-code
> files to linker

Use 'clang -c -emit-llvm anyfile.c', this will give you an LLVM
bitcode file as anyfile.o.

 - Daniel



More information about the cfe-dev mailing list