${CC} in share/mk/bsd.cpu.mk

Alexander Best arundel at freebsd.org
Sun Jan 23 13:07:06 UTC 2011


hi there,

i was fiddling with share/mk/bsd.cpu.mk in order to add some clang specific
conditions. however it seems ${CC} is always set to "cc" no matter what's in
src.conf. this is odd, since there's already some code in bsd.cpu.mk which
checks ${CC} == icc. right now this code is a noop, since ${CC} can't be
anything else than "cc". is it possible to somehow fix this?

e.g. there's no reason to set CPUTYPE to nocona, when
${CC} == clang && ${CPUTYPE} == core2.

cheers.
alex

-- 
a13x


More information about the freebsd-toolchain mailing list