Re: Does Xcode have any compiler detection mechanism's
Re: Does Xcode have any compiler detection mechanism's
- Subject: Re: Does Xcode have any compiler detection mechanism's
- From: Mark Thomas <email@hidden>
- Date: Wed, 22 Nov 2006 17:45:56 +0000
- Organization: Coderus Ltd
Hi Chris,
Thanks, but I'm not using gcc_select but thanks for the head's up on that
one.
I finally got it tracked down that he was using a old version of XCode
version 2.1, and that version I guess doesn't understand about
GCC_VERSION_ppc at all (this was set in the project), but everything else
worked fine - Doh !
I'm wondering if there something I can in my built steps, to check that the
right compiler will be used for right side of compilation.
1. Is there to find out what version gcc will be used when compiling the PPC
or i386 side ?, I'm thinking here of what is next to CompileC in the build
result window.
2. Maybe is there a way to test object file about which gcc was used ?
3. I thinking that post build step that uses otool -L, and then check each
architecture and makes sure that they are differen't otherwise raise an
error.
Any idea's, thoughts
Thanks
Mark.
> Message: 11
> Date: Wed, 22 Nov 2006 09:35:02 -0800
> From: Chris Espinosa <email@hidden>
> Subject: Re: Does Xcode have any compiler detection mechanism's
> To: XCode Users List <email@hidden>
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="us-ascii"
>
> On Nov 21, 2006, at 10:39 AM, Mark Thomas wrote:
>
>> I have a universal .xcodeproj which work great for using gcc 3
>> for powerpc
>> and gcc 4 for i386 side and all builds fine on my setup. But
>> working with
>> another developer who xcode environment I don't have any access to
>> seems to
>> have have problems building my project.
>>
>> Looking at his build's log it looks like XCode ignored my
>> request to use
>> gcc 3 for powerpc, even though if you check the setenv and you see the
>> request there. As all the powerpc code is being compiled with gcc-4.0
>> instead of gcc-3.3 which is not want I need, as I need to code to
>> load on
>> 10.2.x system.
>>
>> I'm wondering if the developer hasn't installed gcc 3 somehow, is
>> there a
>> way to detect this, or would Xcode just fail slightly under the hood ?
>
> It's certainly possible to set up systems and a project so that this
> is the expected behavior:
> - use gcc_select 3.3 on your system
> - use gcc_select 4.0 on his system
> - set up GCC_VERSION_ppc to be undefined (system default)
> - set up GCC_VERSION_i386 to be 4.0
>
> It's a little complicated, but if you'd indeed set your project up
> that way, it would behave exactly as you've described.
>
> The solution is to set GCC_VERSION_ppc explicitly to 3.3 in the
> project. That way it doesn't matter what the gcc_select setting is
> on either system.
>
>> Any thoughts, I have asked to go to command line and type 'which
>> gcc-3.3' ,
>> which I think is going to fail, but I'm surprise XCode didn't
>> complain.
>
> Try gcc_select --version to see what's set on each system.
>
> Chris
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.apple.com/pipermail/xcode-users/attachments/20061122/5628a921/att
> achment.html
>
> ------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden