Setting C/C++/Objective-C Options


Setting the Optimization Level

You can choose which files to optimize and how to optimize them. All optimized files are optimized with the same set of options. If a file is in multiple targets, you can choose to optimize it in some targets and not others.

To choose whether a file is optimized:

  1. Click the Targets tab, select the target's name, click the Files tab, and find the file.
  2. Click Opt so the word changes from gray to black.

To specify the options for optimized files:

  1. Click the Targets tab, select the target's name, and click the Build Settings tab.
  2. In the Build Flags section, double click in the Value column beside the OPTIMIZATION_CFLAGS.