How can I tell premake to generate a Makefile that uses clang?

build, makefile, premake

Solution

Here is what I use, it works for me:

--  ugly hack to use clang
premake.gcc.cc  = 'clang'
premake.gcc.cxx = 'clang++'

Nothing else seemed to work at all.

Problem

I would like to build my application using clang when generating a Makefile (gmake toolchain). Is there a way to do this?

Original source