Re: Seeing preprocessor defines with -dM
Re: Seeing preprocessor defines with -dM
- Subject: Re: Seeing preprocessor defines with -dM
- From: Scott Tooker <email@hidden>
- Date: Wed, 18 Feb 2004 16:50:52 -0800
On Feb 16, 2004, at 5:17 PM, Chris Espinosa wrote:
> On Feb 16, 2004, at 3:30 PM, Andrew Duncan 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)
Scott
> 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.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.