• 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: Source files being compiled multiple times?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Source files being compiled multiple times?


  • Subject: Re: Source files being compiled multiple times?
  • From: Alexander Heinz <email@hidden>
  • Date: Mon, 26 Apr 2010 19:05:09 -0400

On Apr 26, 2010, at 6:18 PM, Sherm Pendley wrote:

On Mon, Apr 26, 2010 at 6:08 PM, Alexander Heinz
<email@hidden> wrote:

I've got an Xcode project with a moderate number of source files which, as it is, take a bit of time to compile. It seems to be taking a lot longer, however, because Xcode appears to be compiling each of them three times.

That's normal and (for release builds at least) necessary. Your code
is compiled separately for each supported architecture.

I just looked at the exact output of the repeated GCC commands, and it looks like you're definitely right; however, I can't seem to get Xcode to compile for just one architecture; read on:

Has anyone experienced similar behavior, and if so, did you manage to fix it, and how?

Use the "Debug" configuration until you're ready to roll a release
build. By default, the "Debug" config will only compile for the
architecture for the machine you're currently using.

I'm currently using a Debug configuration, with "Architectures" set to "Native Architecture of Build Machine" and "Build Active Architecture Only" checked. Clicking "Build" still results in each file being built three times. Are there any other flags I need to adjust? "Valid Architectures" lists others, could that be the problem?

sherm--

- Alex
 _______________________________________________
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: Source files being compiled multiple times?
      • From: Sherm Pendley <email@hidden>
    • Re: Source files being compiled multiple times?
      • From: Fritz Anderson <email@hidden>
References: 
 >Source files being compiled multiple times? (From: Alexander Heinz <email@hidden>)
 >Re: Source files being compiled multiple times? (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Source files being compiled multiple times?
  • Next by Date: Re: Source files being compiled multiple times?
  • Previous by thread: Re: Source files being compiled multiple times?
  • Next by thread: Re: Source files being compiled multiple times?
  • Index(es):
    • Date
    • Thread