Re: Getting a StringPtr from Gestalt on 64-bit
Re: Getting a StringPtr from Gestalt on 64-bit
- Subject: Re: Getting a StringPtr from Gestalt on 64-bit
- From: Kyle Sluder <email@hidden>
- Date: Thu, 3 Sep 2009 14:41:36 -0700
On Thu, Sep 3, 2009 at 12:47 PM, David Duncan<email@hidden> wrote:
> The kernel you are booted into has no effect on the binaries that will
> launch. However, your project settings will determine what build is
> launched, and older projects will often have i386 as default (a newly
> created project shows that x86_64 is shown by default on my machine).
To elaborate a bit more on this (cause it bit me a few weeks ago):
On x86_64, the $(NATIVE_ARCH) macro expands to i386. This is
documented in the Xcode 3.0 release notes (I think) to maintain
compatibility with older Xcode projects. Otherwise you'd open an
Xcode 2.5 project in Xcode 3.0 and get different behavior. Nowadays
$(NATIVE_ARCH_ACTUAL) is the macro you want to use for "no, really, I
want 64-bit if you can do it".
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden