• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to build 64-bit for current architecture only?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to build 64-bit for current architecture only?


  • Subject: How to build 64-bit for current architecture only?
  • From: David Hoerl <email@hidden>
  • Date: Wed, 03 Sep 2008 13:56:56 -0400

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)
  ONLY_ACTIVE_ARCH = YES

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: ONLY_ACTIVE_ARCH = YES;
project.pbxproj: ONLY_ACTIVE_ARCH = YES;
$
So, where did the x86_64 come from? Must be from $(ARCHS_STANDARD_64_BIT).


- - -

In the likely event that my use of ARCHS and ONLY_ACTIVE_ARCH will not achieve my objective, can I configure the project so that it only builds Intel on Intel machines, and PPC on PowerPC machines?

Thanks

David
_______________________________________________
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


  • Follow-Ups:
    • Re: How to build 64-bit for current architecture only?
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: Automatic snapshots
  • Next by Date: Setting version numbers and strings using shell scripts and xcodebuild
  • Previous by thread: Re: TraceEventByName on Leopard
  • Next by thread: Re: How to build 64-bit for current architecture only?
  • Index(es):
    • Date
    • Thread