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:09:20 -0700
On Mon, Jun 1, 2009 at 7:00 PM, Shawn Erickson <email@hidden> wrote:
> 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
Of course I do the following which allows my 32 and 64 binary segments
to use 10.5 API when running on a 10.5 system while still being able
to run on a 10.4 system. Just need to make sure that you check for the
availability of 10.5+ specific API (at runtime) before you use them
since your 32b binary segments code be run on a 10.4 system.
Again just copy and paste...
SDKROOT = macosx10.5
MACOSX_DEPLOYMENT_TARGET = 10.4
MACOSX_DEPLOYMENT_TARGET[arch=ppc64] = 10.5
MACOSX_DEPLOYMENT_TARGET[arch=x86_64] = 10.5
-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