Skip to content

Commit 4c4a55f

Browse files
authored
Merge pull request swiftlang#30934 from CodaFi/unchecked-opt-imism
[Gardening] Add Missing Instructions For Setting Optimization Levels in Xcode
2 parents 9269143 + d453eac commit 4c4a55f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

docs/OptimizationTips.rst

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,19 @@ three different optimization levels:
3333

3434
In the Xcode UI, one can modify the current optimization level as follows:
3535

36-
...
37-
36+
In the Project Navigator, select the project icon to enter the Project Editor.
37+
In the project editor, select the icon under the "Project" header to enter
38+
the project settings editor. From there, an optimization setting can be applied
39+
to every target in the project by changing the "Optimization Level" field under
40+
the "Build Settings" header.
41+
42+
To apply a custom optimization level to a particular target, select that target
43+
under the "Targets" header in the Project Editor and override the
44+
"Optimization Level" field under its "Build Settings" header.
45+
46+
If a given optimization level is not available in the UI, its corresponding flag
47+
can be manually specified by selecting the ``Other...`` level in
48+
the "Optimization Level" dropdown.
3849

3950
Whole Module Optimizations (WMO)
4051
================================

0 commit comments

Comments
 (0)