• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Does Xcode have any compiler detection mechanism's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does Xcode have any compiler detection mechanism's


  • Subject: Re: Does Xcode have any compiler detection mechanism's
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 22 Nov 2006 09:35:02 -0800

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

References: 
 >Does Xcode have any compiler detection mechanism's (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: Xcode bugs
  • Next by Date: Re: Does Xcode have any compiler detection mechanism's
  • Previous by thread: Does Xcode have any compiler detection mechanism's
  • Next by thread: Does Xcode have any compiler detection mechanism's
  • Index(es):
    • Date
    • Thread