]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-117804: Document how to suppress PGO unprofiled source warnings (#117859)
authorErlend E. Aasland <erlend@python.org>
Mon, 15 Apr 2024 21:17:28 +0000 (23:17 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Apr 2024 21:17:28 +0000 (23:17 +0200)
Doc/using/configure.rst

index eef0c5022d37af2fb0f47899ece368d6727e5e98..580d31fd422c5a4d888d672c7ed39156feeb9d75 100644 (file)
@@ -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