Re: Pruning the include file set
Re: Pruning the include file set
- Subject: Re: Pruning the include file set
- From: Fritz Anderson <email@hidden>
- Date: Fri, 2 May 2008 13:52:31 -0500
On 2 May 2008, at 1:11 PM, Scott Thompson wrote:
Is there any way that gcc and/or XCode could tell me what include
files my project is actually using?
What I'd like to do is remove any header files from the project that
are not actually in-use by my code.
gcc's -M flag will run the preprocessor (only) and emit makefile
fragments for the current source file's dependencies. This can't
easily be made useful from Xcode (though I guess a separate target
with a special .c/.cpp/.m rule might take care of it), and you'll have
to massage the results, but it's a start.
— F
_______________________________________________
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