| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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. 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. If you really want build settings, those are an Xcode construct, not a compiler construct, and the compiler knows nothing about them (build settings determine and control compiler flags, they are not compiler flags themselves). To see all the build settings in effect for a target, add a Run Script build phase that does nothing; by default it will dump all the build settings into the build transcript at the time it's run, and you can see what they are. Chris |
_______________________________________________ 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>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.