${CC} in share/mk/bsd.cpu.mk
Alexander Best
arundel at freebsd.org
Sun Jan 30 22:17:59 UTC 2011
On Sun Jan 23 11, Alexander Best wrote:
> hi there,
i might have described things a bit too complicated. basically i want to have
CPUTYPE ?= core2 in my make.conf. clang is capable of producing core2 specific
code, however core2 always gets downgraded by share/mk/bsd.cpu.mk to nocona in
order not to confuse gcc.
any chance of fixing this?
cheers.
alex
>
> 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
--
a13x
More information about the freebsd-toolchain
mailing list