Re: Source files being compiled multiple times?
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