roll: pigweed pw_chrono: Properly stamp build time in Bazel

Before this change, the generated build_time.h header would be
unconditionally cached between builds. This means the time in
build_time.h would reflect not the actual time when the build command
was run, but the time when the cached version of the file was built,
which could have been in the distant past.

After this change the caching behavior depends on how Bazel is invoked:

1. By default, the file is cached as before.
2. If Bazel is invoked with the --stamp flag, the file will be rebuilt.
   This option should be used for release builds.

Fixes: 367739962
Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/237809
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Original-Revision: 279ab4a35543900b62e674d14c2e663532ad5a18

Rolled-Repo: https://pigweed.googlesource.com/pigweed/pigweed
Rolled-Commits: 974dd9e7201646..279ab4a3554390
Roller-URL: https://ci.chromium.org/b/8735170110246709729
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I8c6ebee40ea10441ab9ec8d8b2c2d646da08c6bd
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/showcase/sense/+/239392
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
1 file changed
tree: 36297a7d1f9470efc7675fdf0cbfd219b9b84020
  1. .github/
  2. .vscode/
  3. apps/
  4. device/
  5. modules/
  6. system/
  7. targets/
  8. tools/
  9. web_app/
  10. .bazelignore
  11. .bazelrc
  12. .bazelversion
  13. .buildifier.json
  14. .clang-format
  15. .clangd.shared
  16. .gitignore
  17. .pw_console.yaml
  18. AUTHORS
  19. BUILD.bazel
  20. CONTRIBUTING.md
  21. LICENSE
  22. MODULE.bazel
  23. MODULE.bazel.lock
  24. OWNERS
  25. pigweed.json
  26. README.md
README.md

Sense

git clone https://pigweed.googlesource.com/pigweed/showcase/sense

Welcome to Pigweed Sense, a tour of key Pigweed components experienced through an imagined air quality product.

Please visit Sense: An interactive tour through Pigweed to get started.