Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions getting-started/setup-building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,11 @@ and may be used to auto-enable Link Time Optimization (LTO) on some platforms.
See :option:`python:--enable-optimizations` and :option:`python:--with-lto`
to learn more about these options.

.. important::
When using ``--enable-optimizations``, do not set ``CFLAGS=-O0`` or any other
flags that disable compiler optimizations. PGO requires optimizations to be
enabled to work properly.

.. code:: console

$ ./configure --enable-optimizations --with-lto
Expand Down
Loading