Skip to content

Commit

Permalink
[3.12] pythongh-117804: Document how to suppress PGO unprofiled sourc…
Browse files Browse the repository at this point in the history
…e warnings (pythonGH-117859) (python#117912)

(cherry picked from commit 757891e)

Co-authored-by: Erlend E. Aasland <[email protected]>
  • Loading branch information
miss-islington and erlend-aasland authored Apr 15, 2024
1 parent eb0bfb5 commit 556fb36
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Doc/using/configure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,15 @@ also be used to improve performance.
GCC is used: add ``-fno-semantic-interposition`` to the compiler and linker
flags.

.. note::

During the build, you may encounter compiler warnings about
profile data not being available for some source files.
These warnings are harmless, as only a subset of the code is exercised
during profile data acquisition.
To disable these warnings on Clang, manually suppress them by adding
``-Wno-profile-instr-unprofiled`` to :envvar:`CFLAGS`.

.. versionadded:: 3.6

.. versionchanged:: 3.10
Expand Down

0 comments on commit 556fb36

Please sign in to comment.