Skip to content

Commit b51576b

Browse files
committed
gh128042: Update docs to not use -O0 with --enable-optimizations
1 parent 3626928 commit b51576b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/using/configure.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,10 @@ also be used to improve performance.
552552
GCC is used: add ``-fno-semantic-interposition`` to the compiler and linker
553553
flags.
554554

555+
Do not set ``-O0`` in :envvar:`CFLAGS` when using this option, as it doesn't
556+
make sense to perform Profile Guided Optimization when no optimizations are
557+
enabled.
558+
555559
.. note::
556560

557561
During the build, you may encounter compiler warnings about

0 commit comments

Comments
 (0)