[LLVMdev] compiling llvm src into llvm bitcode

Duncan Sands baldrick at free.fr
Tue Apr 13 00:07:17 PDT 2010


> Is there an easy way to compile llvm src code into llvm bitcode?  Would just
> changing CC in the makefile work?

Pass the -emit-llvm flag to llvm-gcc or clang.  You can put it in CFLAGS.

Ciao,

Duncan.



More information about the llvm-dev mailing list