• 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: Xcode flags to gcc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode flags to gcc


  • Subject: Re: Xcode flags to gcc
  • From: Chris Espinosa <email@hidden>
  • Date: Fri, 14 Jul 2006 08:37:50 -0700


On Jul 14, 2006, at 3:35 AM, Marco Bambini wrote:

ARCHS = ppc i386

SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk

SDKROOT_ppc = /Developer/SDKs/MacOSX10.2.8.sdk

GCC_VERSION_i386 = 4.0

GCC_VERSION_ppc = 3.3


I know that I can use something like:

-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc


but, how can I specify a per architecture isysroot ? and what about gcc version?


Xcode doesn't.  It invokes gcc twice, once per architecture, with different sets of flags, then lipos the results together.  You can't drive gcc with multiple -arch flags and get it to use different flags for different archs in one invocation.

Note in your case that you even want to use different gcc compilers, so you pretty much have to set this up in your makefile; GCC_VERSION specifies which tool to execute, not just a flag passed to gcc.

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: 
 >Xcode flags to gcc (From: Marco Bambini <email@hidden>)

  • Prev by Date: Catching C++ exceptions thrown from a framework
  • Next by Date: Re: gcc-4.0 failed with exit code 1
  • Previous by thread: Xcode flags to gcc
  • Next by thread: gcc-4.0 failed with exit code 1
  • Index(es):
    • Date
    • Thread