8000 [3.12] gh-117804: Document how to suppress PGO unprofiled source warn… · python/cpython@556fb36 · GitHub
[go: up one dir, main page]

Skip to content

Commit 556fb36

Browse files
[3.12] gh-117804: Document how to suppress PGO unprofiled source warnings (GH-117859) (#117912)
(cherry picked from commit 757891e) Co-authored-by: Erlend E. Aasland <erlend@python.org>
1 parent eb0bfb5 commit 556fb36

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Doc/using/configure.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,15 @@ also be used to improve performance.
302302
GCC is used: add ``-fno-semantic-interposition`` to the compiler and linker
303303
flags.
304304

305+
.. note::
306+
307+
During the build, you may encounter compiler warnings about
308+
profile data not being available for some source files.
309+
These warnings are harmless, as only a subset of the code is exercised
310+
during profile data acquisition.
311+
To disable these warnings on Clang, manually suppress them by adding
312+
``-Wno-profile-instr-unprofiled`` to :envvar:`CFLAGS`.
313+
305314
.. versionadded:: 3.6
306315

307316
.. versionchanged:: 3.10

0 commit comments

Comments
 (0)
0