]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-117804: Document how to suppress PGO unprofiled source warnings (GH-117859...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 15 Apr 2024 21:24:35 +0000 (23:24 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Apr 2024 21:24:35 +0000 (21:24 +0000)
(cherry picked from commit 757891ee8ad61a864444c1fdb764d81bc8a11189)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Doc/using/configure.rst

index 45263a3ee1753c7c592f9de5c76f6688990a6ef1..0e605b38d421d6af173cd86251392ff2b1ca9ac6 100644 (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