On Wed, Mar 01, 2017 at 11:09:03PM +0100, Christian Weisgerber wrote: > Juan Francisco Cantero Hurtado: > > > They have a simple option to change the compilers but we need a variable > > with the realname of the compiler, i.e. clang or gcc. > > > > You can use "nim c -cc:clang" or "nim c -cc:gcc" (the default) or "nim c > > -cc:egcc". All of them are the name of the profile, not the compiler > > executable. > > > > Here is the patch. It includes some adittional changes. If someone has > > an better idea for the conditional... I'm listening :) > > CLANG_ARCHS was added incompletely, so you need arch-defines.mk > r1.32 for that: > > .include <bsd.port.arch.mk> > > # CC is always "cc". We need the real name. > .if ${PROPERTIES:Mclang} > CC = clang > .else > CC = gcc > .endif > > BTW, I think using CC for a variable with different semantics is a > bad idea. Pick a different name, please.
Thanks. How about "COMPILER" or "C_COMP"? -- Juan Francisco Cantero Hurtado http://juanfra.info