Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Nov 2011 16:38:56 +0100
From:      Roman Divacky <rdivacky@freebsd.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        Alexander Best <arundel@freebsd.org>, freebsd-toolchain@freebsd.org
Subject:   Re: CPUTYPE=native handling
Message-ID:  <20111108153856.GA90966@freebsd.org>
In-Reply-To: <4EB8E07B.5070908@FreeBSD.org>
References:  <20111108002556.GA91218@freebsd.org> <4EB8E07B.5070908@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111108153856.GA90966>