Re: Add custom compiler in Xcode?

Christiaan Hofman <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Mar 5, 2010, at 12:07, Aya Koshigaya wrote:

> Hi,
> 
> I have a target for a simple C - Command line tool.
> It's working fine, but I'd like to use a special version of gcc to compile it.
> 
> I installed the GCC (v4.3.2) and can compile my sources via command line and makefile without any problems.
> 
> But, can I somehow tell Xcode to use this gcc to compile the sources?
> If I just change the GCC_VERSION in the Build-Settings of my target, I always end up with error messages telling me "invalid value 4.3.2 for GCC_VERSION".
> 
> In the terminal I can use this gcc via:
> gcc-432
> 
> If I put this to the GCC_VERSION, I get the same error.. ("Invalid value gcc-432 ... ")
> 
> Any ideas?
> 
> Aya~

When you use a version of "4.3.2" then it searches for "gcc-4.3.2", not "gcc-432". 

Also, Xcode seems to look in /Developer/usr/bin (or wherever you've installed your xcode tools) for the compiler executables, so I think you have to install it there or create a symlink with the proper name there.

Christiaan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.