Mailing List Archive

gh-117804: Document how to suppress PGO unprofiled source warnings (#117859)
https://github.com/python/cpython/commit/757891ee8ad61a864444c1fdb764d81bc8a11189
commit: 757891ee8ad61a864444c1fdb764d81bc8a11189
branch: main
author: Erlend E. Aasland <erlend@python.org>
committer: erlend-aasland <erlend.aasland@protonmail.com>
date: 2024-04-15T23:17:28+02:00
summary:

gh-117804: Document how to suppress PGO unprofiled source warnings (#117859)

files:
M Doc/using/configure.rst

diff --git a/Doc/using/configure.rst b/Doc/using/configure.rst
index eef0c5022d37af..580d31fd422c5a 100644
--- a/Doc/using/configure.rst
+++ b/Doc/using/configure.rst
@@ -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

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-leave@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: list-python-checkins@lists.gossamer-threads.com