Hi all, Is there an easy way to compile llvm src code into llvm bitcode? Would just changing CC in the makefile work? Thanks, Alvin
> 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.
If you mean actual llvm src code (not C), then use llvm-as. ~michael -----Original Message----- From: Duncan Sands [mailto:baldrick at free.fr] Sent: Tuesday, April 13, 2010 12:07 AM To: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] compiling llvm src into llvm bitcode> 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.