Re: 64-bit, 10.5/10.4, SDK build settings
Re: 64-bit, 10.5/10.4, SDK build settings
- Subject: Re: 64-bit, 10.5/10.4, SDK build settings
- From: Shawn Erickson <email@hidden>
- Date: Mon, 1 Jun 2009 19:00:13 -0700
On Mon, Jun 1, 2009 at 6:37 PM, Alex Sheh <email@hidden> wrote:
> Thanks for the links, I've already read those documents regarding conditional build settings. Those were the conditional build settings that I was referring to in my original posting.
>
> The conditional build settings are architecture-specific and base SDK specific (the SDK that the code is built against), rather than conditional upon the user's OS. The problem is that for PowerPC 64-bit and Intel 64-bit, 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, and I need to run the 32-bit binary (the one built against 10.4 SDK) when the user is running Tiger 10.4.
Make the SDK conditional based on architecture. Basically copy and
paste the following into your build settings for the target.
SDKROOT = macosx10.4
SDKROOT[arch=ppc64] = macosx10.5
SDKROOT[arch=x86_64] = macosx10.5
The above defines how you code will be built at compile time... the
users OS has no say in this aspect of things.
If you want to have 64b be preferred over 32b when running on 64b
capable systems then look at specifying the LSArchitecturePriority
plist entry.
http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/PListKeys.html#//apple_ref/doc/uid/20001431-106825-TPXREF124
-Shawn
_______________________________________________
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