[cfe-dev] Makefile with Clang

Eli Friedman eli.friedman at gmail.com
Mon Apr 19 21:05:31 PDT 2010

On Mon, Apr 19, 2010 at 7:07 PM, Yan Lin Aung <yan_lin_aung at yahoo.com> wrote:
> Hi
> I would like to compile applications which consists of multiple source files (for example, file1.c file2.c, main.c) with Clang using Makefile to get the LLVM bitcode file. Anyone knows how to do that? Thanks.

Try the following:
make CC="clang -emit-llvm"


More information about the cfe-dev mailing list