[PATCH] Let the default compiler be configurable

Jack Howarth howarth at bromo.med.uc.edu
Sat Jun 11 12:08:10 PDT 2011


On Thu, Jun 09, 2011 at 10:01:17PM -0500, Ryan Schmidt wrote:
> On Jun 9, 2011, at 21:49, Joshua Root wrote:
> 
> > On 2011-6-10 12:46 , Ryan Schmidt wrote:
> >> 
> >> I don't know why we have extra_env. But I know two reasons to have binpath: 1) it lets us check that ports are using the right compiler [1]; 2) it lets users use MacTeX instead of MacPorts' TeX Live.
> >> 
> >> [1] https://trac.macports.org/wiki/UsingTheRightCompiler
> > 
> > So we're in violent agreement: there can be reasons for using options
> > which are nonetheless unsupported.
> 
> Oh, that's fun: we were in agreement and I didn't even know it! :)
> 
> So this new option would just be the default compiler? And ports that specify something with configure.compiler would still override that? That should be ok.

FYI, my path-prefix-clang patches were just committed to fink cvs so that on 10.7 and later
the default compiler for cc/gcc is symlinked to a compiler wrapper for clang and for c++/g++ to
the same for clang++. This behavior can be overridden with SetCC/SetCXX. Sounds like what you want
to do with MacPorts (although I would suggest defaulting to clang/clang++ on 10.7). The llvm-gcc
compiler development is pretty stagnant and important fixes like that for http://llvm.org/bugs/show_bug.cgi?id=9571
aren't going to be backported to llvm-gcc in Xcode any time soon if ever. Since the WWDC Xcode release, the
only blocker, http://llvm.org/bugs/show_bug.cgi?id=9862, has been fixed. All of the other issues that I have run
into building fink packages with clang 3.0svn have either been language compliance issues (eg main can't return unsigned int)
or actual latent programming errors that clang's optimizers expose.
                  Jack

> 
> We'll probably still get people who migrate their old macports.conf to a new machine, and cause new problems due to using an older compiler. Hopefully most users will notice.
> 
> 
> 
> _______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev


More information about the macports-dev mailing list