8000 gh-117804: Document how to suppress PGO unprofiled source warnings (#… · python/cpython@757891e · GitHub
[go: up one dir, main page]

Skip to content

Commit 757891e

Browse files
gh-117804: Document how to suppress PGO unprofiled source warnings (#117859)
1 parent 3375282 commit 757891e

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
@@ -518,6 +518,15 @@ also be used to improve performance.
518518
GCC is used: add ``-fno-semantic-interposition`` to the compiler and linker
519519
flags.
520520

521+
.. note::
522+
523+
During the build, you may encounter compiler warnings about
524+
profile data not being available for some source files.
525+
These warnings are harmless, as only a subset of the code is exercised
526+
during profile data acquisition.
527+
To disable these warnings on Clang, manually suppress them by adding
528+
``-Wno-profile-instr-unprofiled`` to :envvar:`CFLAGS`.
529+
521530
.. versionadded:: 3.6
522531

523532
.. versionchanged:: 3.10

0 commit comments

Comments
 (0)
0