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

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to