[3.12] gh-117804: Document how to suppress PGO unprofiled source warnings (GH-117859) (#117912)

(cherry picked from commit 757891ee8a)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
This commit is contained in:
Miss Islington (bot) 2024-04-15 23:24:35 +02:00 committed by GitHub
parent eb0bfb5910
commit 556fb3675c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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