CPUTYPE=native handling

Roman Divacky rdivacky at freebsd.org
Tue Nov 8 15:39:03 UTC 2011


On Tue, Nov 08, 2011 at 08:55:39AM +0100, Dimitry Andric wrote:
> On 2011-11-08 01:25, Alexander Best wrote:
> > i've seen dozens of issues, where people set CPUTYPE=native. although this
> > works in a lot of cases, it doesn't in others. why don't we simply add
> > something like
> > 
> > . if ${CPUTYPE} == "native"
> > .  error "bla"
> > . endif
> > 
> > in share/mk/bsd.cpu.mk for now? or at least for the archs, where "native" is
> > known to cause problems.
> 
> What does this solve?  Don't you think it is better to try to fix the
> actual problems?  Some people like being able to optimize for their

Yes, we definitely should aim for fixing the problems instead of working
around them.

This way both clang and freebsd benefits.

roman


More information about the freebsd-toolchain mailing list