Go Back   XCode Forum- The iPhone and Mac OS Xcode Developer Community > Mac OS > Cocoa

Reply
 
LinkBack Thread Tools Display Modes

how to run preprocessor only?
  #1 (permalink)  
Old 07-03-2008, 08:24 AM
diglan diglan is offline
Junior Member
 
Join Date: Jul 2008
Posts: 1
Default how to run preprocessor only?

Hello!
I've benn writing some special tool for making search through obective-c source code.
And now, I've got a problem with compilaton stages.
There is need to preprocess whole source code at the first time, and only modified modules aftewards.

Well, it's like to run my own script instead gcc, where I can insert -E flag in gcc calling.
Thank you!
Sorry for my English.
Reply With Quote

  #2 (permalink)  
Old 07-04-2008, 04:31 PM
Nicod3mus Nicod3mus is offline
Administrator
 
Join Date: Jun 2008
Posts: 3
Default

I cannot answer your question and after a bit of aditional research I am not sure what you are asking could you please clarify?

I alerted Jon to this post as he could probably answer your question but being a holiday it may be a while.
Reply With Quote

  #3 (permalink)  
Old 07-06-2008, 05:08 AM
jon jon is offline
Administrator
 
Join Date: Jun 2008
Location: Colorado
Posts: 19
Default

Xcode should only compile modified files when compiling though if that is what you are asking. Could you clarify your question at all? I might be able to offer some more advice with a few more details.

Also, if you do a clean build and clean all your targets before you compile does this resolve your problem? I find that it can often fix strange linking errors when compiling after adding certain code because it will force it to recompile all code regardless of it has been modified.

Xcode uses Apple's own modified version of gcc so their should be a way to apply the -E flag you want in the settings for your project.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump



All times are GMT. The time now is 11:33 PM.


vBulletin skin developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0 Beta 1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27