[MacPorts] #30009: Choose default compiler based on Xcode version

MacPorts noreply at macports.org
Sat Jul 2 16:22:43 PDT 2011


#30009: Choose default compiler based on Xcode version
-----------------------------------+----------------------------------------
 Reporter:  jeremyhu@…             |       Owner:  macports-tickets@…                   
     Type:  enhancement            |      Status:  new                                  
 Priority:  Normal                 |   Milestone:  MacPorts Future                      
Component:  base                   |     Version:  1.9.99                               
 Keywords:                         |        Port:                                       
-----------------------------------+----------------------------------------

Comment(by jmr@…):

 There are a few little tweaks I want to make to this, for example Xcode <
 2.4 should still choose gcc-4.0 and only $xcodeversion == "" should result
 in "gcc" being used. I also need to satisfy myself that it interacts
 correctly with changing macosx_deployment_target.

 BTW, on reflection, the code setting CC for selfupdate is pretty
 overengineered. The only reason it exists at all is because Ryan
 complained about it using "gcc" which tripped over his modified binpath
 that contained a fake error-throwing gcc in order to catch ports that do
 that. It's a complete non-issue for base because it removes ${prefix} from
 its PATH in the configure script and therefore "gcc" is exactly equivalent
 to "/usr/bin/gcc" which is always linked to our preferred compiler.
 Probably just setting CC=/usr/bin/cc would be a decent compromise.

-- 
Ticket URL: <https://trac.macports.org/ticket/30009#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list