summaryrefslogtreecommitdiffstats
path: root/Doc/using
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-04-15 21:24:35 (GMT)
committerGitHub <noreply@github.com>2024-04-15 21:24:35 (GMT)
commit556fb3675c87ed1132caa5ccec94fc3f8778b1d7 (patch)
tree52e59ea803bae354880241eb94224ba3224988d9 /Doc/using
parenteb0bfb5910e5135505d2259efa90e0095c422efe (diff)
downloadcpython-556fb3675c87ed1132caa5ccec94fc3f8778b1d7.zip
cpython-556fb3675c87ed1132caa5ccec94fc3f8778b1d7.tar.gz
cpython-556fb3675c87ed1132caa5ccec94fc3f8778b1d7.tar.bz2
[3.12] gh-117804: Document how to suppress PGO unprofiled source warnings (GH-117859) (#117912)
(cherry picked from commit 757891ee8ad61a864444c1fdb764d81bc8a11189) Co-authored-by: Erlend E. Aasland <erlend@python.org>
Diffstat (limited to 'Doc/using')
-rw-r--r--Doc/using/configure.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/using/configure.rst b/Doc/using/configure.rst
index 45263a3..0e605b3 100644
--- a/Doc/using/configure.rst
+++ b/Doc/using/configure.rst
@@ -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