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.
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 |