Skip to content

Commit

Permalink
pythongh-117804: Document how to suppress PGO unprofiled source warni…
Browse files Browse the repository at this point in the history
…ngs (python#117859)
  • Loading branch information
erlend-aasland authored and diegorusso committed Apr 17, 2024
1 parent 4e76785 commit b3b4e83
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 @@ -518,6 +518,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 b3b4e83

Please sign in to comment.