Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Showing all the build settings




On Oct 16, 2007, at 4:00 PM, Chris Espinosa wrote:


On Oct 16, 2007, at 8:43 AM, Eric Gorr wrote:

There is some compiler flag that one can add which, instead of actually compiling the code, will output all of the build settings that will be used to compile the code.

Does anyone know what this flag is? I cannot seem to find it again and neglected to write it down when I found it before.

If by "build settings" you actually mean "preprocessor macros," then you're looking for -dM.


1) Project > Edit Current Target
2) In Build tab, find Other C Flags and add -dM to it
3) Choose your source file and select Build > Preprocess

You'll get a list of all the preprocessor macros defined for the compilation of that file.

Yep, I really meant 'preprocessor macros' ... thanks.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Showing all the build settings (From: Eric Gorr <email@hidden>)
 >Re: Showing all the build settings (From: Chris Espinosa <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.