Re: Parallel Target Building with Shared Precompiled Headers failing
Re: Parallel Target Building with Shared Precompiled Headers failing
- Subject: Re: Parallel Target Building with Shared Precompiled Headers failing
- From: Eric Gorr <email@hidden>
- Date: Thu, 10 Sep 2009 14:03:42 -0400
On Sep 1, 2009, at 6:33 PM, Eric Gorr wrote:
I am using Xcode 3.2 under Snow Leopard.
Component versions
Xcode IDE: 1610.0
Xcode Core: 1608.0
ToolSupport: 1591.0
I am sharing precompiled headers and have parallel target building
turned on.
I have two projects which share the same precompiled header. If I
build them in sequence, everything works just fine.
If I build my entire project with many sub-projects and targets, one
of the two does not want to wait for the other to finish building
the precompiled header and fails with:
cc1plus: error: one or more PCH files were found, but they were
invalid
I have filed a bug report ( rdar://7188499 ) and have attached my
full build output to the bug.
If anyone is interested, one of the issues with this is that
SHARED_PRECOMPS_DIR needs to be either:
(1) the default value
(2) a true absolute path
I was using a value defined as a relative path which was referring to
the same folder on disk, but the code which deals with
SHARED_PRECOMPS_DIR is not robust enough to deal with this situation.
However, one I switch to using the default value, I discovered another
weakness in this system...it appears to be easy to have different hash-
criteria generate the same hash value. This prevents those two
projects from sharing their precompiled headers.
I have updated the bug ( rdar://7188499 ) and provided the hash
criteria which generated the same hash value.
_______________________________________________
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