From owner-freebsd-toolchain@FreeBSD.ORG Sun Jan 30 22:17:59 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 7C48C1065670; Sun, 30 Jan 2011 22:17:59 +0000 (UTC) Date: Sun, 30 Jan 2011 22:17:59 +0000 From: Alexander Best To: freebsd-toolchain@freebsd.org Message-ID: <20110130221759.GA38095@freebsd.org> References: <20110123130705.GA21973@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110123130705.GA21973@freebsd.org> Subject: Re: ${CC} in share/mk/bsd.cpu.mk X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jan 2011 22:17:59 -0000 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