tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: defaulting to clang on FreeBSD 10.x



On Sun, Mar 22, 2015 at 10:04:52AM -0700, Hisashi T Fujinaka wrote:
> On Sun, 22 Mar 2015, rodent%NetBSD.org@localhost wrote:
> 
> >On Sun, Mar 22, 2015 at 12:33:01PM -0400, Greg Troxel wrote:
> >>
> >>I am not quite following this.
> >>
> >>Are you saying that if you run bootstrap on FreeBSD 10, you get a
> >>$PREFIX/etc/mk.conf that sets PKGSRC_COMPILER to clang, and then
> >>everything is ok, but if the user takes that line out, then it tries gcc
> >>and fails?
> >
> >Yes, sir. And it should fail in as few cases as possible, even if the user 
> >is
> >doing something stupid. That is what i'm proposing to patch.
> >
> >Based on your previous mail, i would suggest applying a similar patch to 
> >the
> >Darwin.mk starting with whatever version they stopped shipping gcc in base.
> 
> No, if the user wants to use gcc, the user should be able to use gcc.

They could. Notice the ?= assignment in the patch. It's not forcing clang, but
defaulting to it in the absence of those variables. Right now, we're forcing
gcc in their absence, which isn't present on the system.


Home | Main Index | Thread Index | Old Index