• 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
Re: How to build 64-bit for current architecture only?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • SOLVED: How to build 64-bit for current architecture only?
      • From: David Hoerl <email@hidden>
References: 
 >How to build 64-bit for current architecture only? (From: David Hoerl <email@hidden>)

  • Prev by Date: Re: Automatic snapshots - Usable?
  • Next by Date: breakpoints ignored while running unit tests! Why?
  • Previous by thread: How to build 64-bit for current architecture only?
  • Next by thread: SOLVED: How to build 64-bit for current architecture only?
  • Index(es):
    • Date
    • Thread