commit | a6d364e0b84dba3f0e92373de826b9b782202076 | [log] [tgz] |
---|---|---|
author | Paul Kirth <paulkirth@google.com> | Thu Sep 19 14:50:18 2024 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 19 14:50:18 2024 +0000 |
tree | 6e346046b13b6660a9db27f888f5abb3b46e2097 | |
parent | bc10c39875eb57e19b6f7a3a94c714918cd0373e [diff] |
[build][lib] Leverage FatLTO when building tests Since FatLTO binaries ship with both LLVM bitcode and object code, we can avoid expensive linking operations when building tests by not using LTO linking for test binaries. This patch opts C/C++ tests out of a full relink/reoptimization by telling the linker to choose the object code part of the object file to when linking. This reduced the Toolchain build time for tests by around 20% in LTO builds, and we expect similar improvements in Fuchsia. Bug: 364615885 Change-Id: I72c91b84c8061af4f59780a0c96ba1c4f0b180e3 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1112477 Owners-Override: James Robinson <jamesr@google.com> Reviewed-by: Aaron Wood <aaronwood@google.com> Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com> Fuchsia-Auto-Submit: Paul Kirth <paulkirth@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.