commit | c2b9e7a4b98906464c89062c3e9d755e7919963a | [log] [tgz] |
---|---|---|
author | Bob Haarman <inglorion@chromium.org> | Wed Jan 31 22:57:28 2024 +0000 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Feb 01 18:45:53 2024 +0000 |
tree | afefe8d2583718db0eccd42e2a9f9ab9b43a275b | |
parent | bf1e26ec64ed7904322aaa32e7b80458c3a5d99f [diff] |
pgo_rust: explicitly build rust-artifacts pgo_rust builds dev-lang/rust and dev-lang/rust-host a couple of times with different USE flags (instrumented for frontend profiling, instrumented for LLVM profiling) and generates profile data with each configuration. However, USE flags are not taken into account when deciding if dependencies need to be rebuilt. This resulted in dev-lang/rust-artifacts not being rebuilt with the changed USE flags, and profiles not being generated correctly. This change explicitly rebuilds dev-lang/rust-artifacts each time we change the flags, so that profiles are generated correctly. BUG=b:322998657 TEST=pgo_rust.py generate; see that profiles are generated successfully Change-Id: I28265c8d5cf98c4abf751f681e7a361be587359a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/5258978 Commit-Queue: Bob Haarman <inglorion@chromium.org> Tested-by: Bob Haarman <inglorion@chromium.org> Reviewed-by: George Burgess <gbiv@chromium.org>
toolchain-utils
Various utilities used by the ChromeOS toolchain team.
To run Python scripts in this directory, first run:
export PYTHONPATH=$(readlink -f .):$PYTHONPATH
from this directory.
Then you can run any script.
To get help on any script, type in python <script> --help
, or refer to the header of the script for more information.