Skip to content

Commit da0e769

Browse files
committed
docs: describe -Osize as the default optimization mode in OptimizationTips.rst
1 parent f045829 commit da0e769

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: docs/OptimizationTips.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ three different optimization levels:
2525

2626
- ``-Onone``: This is meant for normal development. It performs minimal
2727
optimizations and preserves all debug info.
28-
- ``-O``: This is meant for most production code. The compiler performs
28+
- ``-Osize``: This is meant for most production code. The compiler performs
2929
aggressive optimizations that can drastically change the type and amount of
3030
emitted code. Debug information will be emitted but will be lossy.
31-
- ``-Osize``: This is a special optimization mode where the compiler prioritizes
32-
code size over performance.
31+
- ``-O``: This is a special optimization mode where the compiler prioritizes
32+
performance over code size.
3333

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

0 commit comments

Comments
 (0)