Re: #define bug in gcc for delta builds?
Re: #define bug in gcc for delta builds?
- Subject: Re: #define bug in gcc for delta builds?
- From: Steve Checkoway <email@hidden>
- Date: Wed, 4 Feb 2009 05:10:56 -0800
On Feb 4, 2009, at 5:01 AM, Stephen Northcott wrote:
Is the header file included in the Xcode project? I don't know if
it has to be included in the particular target or not, but I seem
to recall that it doesn't.
No. It is only included in the two or three files that reference it.
You need to include it in the project (but apparently not in the
target). That's what's causing Xcode to not do dependency tracking
for it and causing the problems you're seeing.
Ok. I think I understand that.
When you say include it in XCode, can you treat me like a dumb-ass
and explain what you mean.
It's part of the XCode project. It's actually a header file created
in XCode and written there...
I just meant make it part of the Xcode project. If it already is, then
I guess I'm out of ideas. The way to rule out my guess is:
1. Clean the project.
2. Compile the project.
3. Comment out your define in foo.h.
4. Compile the project.
If every file that #includes foo.h gets recompiled, then that is
working and it's something else entirely. If fewer of them get
compiled, then that's your problem, but I don't know enough about
Xcode to suggest a fix beyond what I've said already.
Ultimately it will be moved to the Common Includes, but for now I
didn't want it to force the whole project to be rebuilt each time
I changed it.
I don't know what you mean by Common Includes.
Just my own files for keeping headers and defines in one place once
code is finalized.
I suspect in effect I am shadowing XCode's dependency tracking there.
I'm not sure how that relates to dependency tracking, but it seems
unrelated to the problem at hand.
Thanks for spending so much time discussing this.
What else am I going to do from 2 to 5 am on a Wednesday morning,
sleep? Oh wait... Goodnight and good luck. =)
--
Steve Checkoway
"Anyone who says that the solution is to educate the users
hasn't ever met an actual user." -- Bruce Schneier
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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