[LLVMdev] compiling llvm src into llvm bitcode

Michael Smith Michael.Smith at synopsys.com
Tue Apr 13 10:03:18 PDT 2010


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.





More information about the llvm-dev mailing list