• 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: 64-bit, 10.5/10.4, SDK build settings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 64-bit, 10.5/10.4, SDK build settings


  • Subject: Re: 64-bit, 10.5/10.4, SDK build settings
  • From: Greg Guerin <email@hidden>
  • Date: Mon, 1 Jun 2009 19:33:33 -0700

Alex Sheh wrote:

My requirements are the following:
- On a machine running 10.5 or later, I need to run 64-bit code.

and:

... I need to run a 64-bit binary (the one that was built against 10.5 SDK) when the user is running Leopard 10.5, ...

This doesn't make sense to me. If the user is running 10.5 Leopard on a machine that doesn't have a 64-bit CPU, what do you intend to happen? As stated, such a user would be unable to run your app. Is that what you want?


If you want users who run 10.5 and also have a 64-bit CPU to run the 64-bit code, then you still need 32-bit code that runs on all arch's and on 10.4 or 10.5.

As to preferring 64-bit over 32-bit on 64-bit-capable arch's, there's an Info.plist key for that: LSArchitecturePriority.


I think you're simply approaching this wrong.

The default SDK for all builds and arch's should be 10.4. This will cover all arch's for which no arch-specific setting is defined. It will be 32-bit in all cases.

The base SDK for 64-bit arch's should be 10.5.

If you approach it this way, then how to setup the per-arch settings should be clearer.

SDKROOT = MacOSX10.4u.sdk
SDKROOT_ppc64 = MacOSX10.5.sdk
SDKROOT_x86_64 = MacOSX10.5.sdk 5

Given the above, when it builds for ppc or i386, it will build for 10.4, because that's the default base SDK, and the target arch doesn't match any arch-specific setting.


However, if I similarly set conditional build settings for "Base SDK" and "MacOSX Deployment Target" so that PowerPC 64-bit and Intel 64-bit are built against 10.5 SDK and deploy on 10.5 or later, then I lose 10.4 support for PowerPC 64-bit and Intel 64-bit architectures.

That's nonsensical. There is no "10.4 support for PowerPC 64-bit and Intel 64-bit" to be lost, because no such thing exists. Unless you're referring only to the 64-bit System framework.


  -- GG

_______________________________________________
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


  • Prev by Date: Re: 64-bit, 10.5/10.4, SDK build settings
  • Next by Date: Help on Nib file launching.
  • Previous by thread: Re: 64-bit, 10.5/10.4, SDK build settings
  • Next by thread: Re: 64-bit, 10.5/10.4, SDK build settings
  • Index(es):
    • Date
    • Thread