File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -79,11 +79,18 @@ platform toolset, but LLVMToolsVersion has to be set accordingly.
7979Setting the major version is enough, although you can be specific
8080and use 18.1.8 in the above example, too.
8181
82- Even --pgo works out of the box. However, if you want to run the PGO task
82+ Use the --pgo option to build with PGO (Profile Guided Optimization).
83+
84+ However, if you want to run the PGO task
8385on a different host than the build host, you must pass
8486"/p:CLANG_PROFILE_PATH=<relative-path-to-instrumented-dir-on-remote-host>"
8587in the PGInstrument step to make sure the profile data is generated
8688into the instrumented directory when running the PGO task.
89+ E.g., if you place the instrumented binaries into the folder
90+ "workdir/instrumented" and then run the PGO task using "workdir"
91+ as the current working directory, the usage is
92+ "/p:CLANG_PROFILE_PATH=workdir/instrumented"
93+
8794Like in the MSVC case, after fetching (or manually copying) the instrumented
8895folder back into your build tree, you can continue with the PGUpdate
8996step with no further parameters.
You can’t perform that action at this time.
0 commit comments