mirror of
https://github.com/python/cpython
synced 2024-10-14 22:49:50 +00:00
[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:
parent
eb0bfb5910
commit
556fb3675c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue