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: Stephen Northcott <email@hidden>
- Date: Wed, 4 Feb 2009 20:42:42 +0700
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.
Check. :)
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.
I am beginning to realize there is a reason for Clean All! ;-)
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.
Thanks once again.. Go catch some Zs.
Kind regards,
Stephen.
_______________________________________________
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