From b51576b2eca83518d21ef0f4244d5c1e071feb4b Mon Sep 17 00:00:00 2001 From: Taegyun Kim Date: Mon, 11 Aug 2025 14:42:57 -0400 Subject: [PATCH] gh128042: Update docs to not use -O0 with --enable-optimizations --- Doc/using/configure.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/using/configure.rst b/Doc/using/configure.rst index 2cda9587975ddc..b41016c3bd9def 100644 --- a/Doc/using/configure.rst +++ b/Doc/using/configure.rst @@ -552,6 +552,10 @@ also be used to improve performance. GCC is used: add ``-fno-semantic-interposition`` to the compiler and linker flags. + Do not set ``-O0`` in :envvar:`CFLAGS` when using this option, as it doesn't + make sense to perform Profile Guided Optimization when no optimizations are + enabled. + .. note:: During the build, you may encounter compiler warnings about