We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 053d92f commit bb383a3Copy full SHA for bb383a3
getting-started/setup-building.rst
@@ -281,6 +281,11 @@ and may be used to auto-enable Link Time Optimization (LTO) on some platforms.
281
See :option:`python:--enable-optimizations` and :option:`python:--with-lto`
282
to learn more about these options.
283
284
+.. important::
285
+ When using ``--enable-optimizations``, do not set ``CFLAGS=-O0`` or any other
286
+ flags that disable compiler optimizations. PGO requires optimizations to be
287
+ enabled to work properly.
288
+
289
.. code:: console
290
291
$ ./configure --enable-optimizations --with-lto
0 commit comments