Re: How to build 64-bit for current architecture only?
Re: How to build 64-bit for current architecture only?
- Subject: Re: How to build 64-bit for current architecture only?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 3 Sep 2008 20:52:29 +0200
Le 3 sept. 08 à 19:56, David Hoerl a écrit : I have a project that needs to build 64-bit for the current architecture (ie x86_64 on Intel, ppc64 on PPC machines, Leopard only).
The project file has: ARCHS = $(ARCHS_STANDARD_64_BIT) > I do most of my builds and test on my local Intel MacBook Pro;
When this same project is build (using xcodebuild) on a Leopard PPC G5 machine, it fails. [I only have remote terminal login to this machine.]
So, I verified for myself the code is current and that xcodebuild fails.
Here is the build output:
$ xcodebuild === BUILDING NATIVE TARGET dgseps OF PROJECT dgseps WITH THE DEFAULT CONFIGURATION (Release) ===
Checking Dependencies...
Ld <blah blah>/dgseps/build/Release/dgseps normal x86_64 <lots more> then fail.
Notice the x86_64 on the line above - now where did that come from???
- - -
So, I cd into the xcodeproj directory, and look for the smoking gun:
$ grep x86 * $
Nothing!!! $ egrep ARCHS_STANDARD_64_BIT *project.pbxproj: ARCHS = "$(ARCHS_STANDARD_64_BIT)"; project.pbxproj: ARCHS = "$(ARCHS_STANDARD_64_BIT)"; $ egrep ONLY_ACTIVE_ARCH *project.pbxproj: >project.pbxproj: >$ So, where did the x86_64 come from? Must be from $(ARCHS_STANDARD_64_BIT).
Check that your settings apply to "Release" build. By default, ONLY_ACTIVE_ARCH is set only for Debug build. But according to your log, you build Release configuration on your G5.
|
_______________________________________________
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