Re: Seeing preprocessor defines with -dM
Re: Seeing preprocessor defines with -dM
- Subject: Re: Seeing preprocessor defines with -dM
- From: Chris Espinosa <email@hidden>
- Date: Wed, 18 Feb 2004 16:58:02 -0800
On Feb 18, 2004, at 4:50 PM, Scott Tooker wrote:
The gcc command line interface provides the -dM option for sending
to stdout all symbols defined to the preprocessor for a given
compilation unit. Can I get this functionality in Xcode?
As with all gcc command line options, you can put this in "Other C
Flags" and it will take effect, as long as it doesn't cause conflicts
with settings that Xcode defines (for this one, I doubt that it does
conflict)
There's an even better place for preprocessor defines, The
"Preprocessor Defines" build setting. You can find the setting under
the "Common Settings" or gcc collection of settings.
For this setting you just provide a space separated list of the
defines. For example,
foo=1 _DEBUG
(Note you don't need the -D)
Beware case sensitivity... -d is different than -D. Scott is right
about -D, but that's not relevant in this case.
Chris
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.