For the C, C++, and Objective-C compiler, edit the macros listed below. To see a list of allowable flags, see the GCC documentation in /System/Documentation/Developer/DeveloperTools/Compiler.
OPTIMIZATION_CFLAGS
specifies
how much to optimize your code. Project Builder applies these flags
to a file only if you've turned on the Optimize option for that
file. Valid levels are -O0
,
for no optimization, to -O3
,
for maximum optimization.WARNING_CFLAGS
specifies
the level of warnings. OTHER_CFLAGS
specifies
any other compiler options. They are used for all C, C++, and Objective-C
files.For the linker, edit the macros listed below.
To see a list of allowable flags, run Terminal (in /System/Administration/)
and type man ld
SECTORDER_FLAGS
lets
you order named sections in Mach-O files. OTHER_LDFLAGS
specifies
other linker options.For the resource compiler Rez, edit the following macro:
OTHER_REZFLAGS