Re: Add custom compiler in Xcode?

Aya Koshigaya <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
Hi, 

thanks for you reply.

I now tried any possible ways:

First, I set 
GCC_VERSION=4.3.2

Then I tried to create a symlink:

in /usr/bin:
ln -s /usr/local/bin/gcc-432 gcc-4.3.2

That didn't worked..

then I copied the binary instead of creating a link, didnt' work too :(

Then I did the same in /Developer/usr/bin/ both didn't work.

I always still get the error message:

Invalid value '4.3.2' for GCC_VERSION

:(

Aya~

On 05.03.2010, at 13:18, Christiaan Hofman wrote:

> 
> 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.