commit | 5b6a8b0a5e660bb789c7a117932ce3d10a23eb04 | [log] [tgz] |
---|---|---|
author | Paul Kirth <paulkirth@google.com> | Fri Sep 20 05:52:49 2024 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 20 05:52:49 2024 +0000 |
tree | 378f2f2d867126b5fa3444cfd3333d139a1eb16e | |
parent | fcc81315c155ab98a7c1b8af6628373cc3fa0f53 [diff] |
[build][virtualization] 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: I8734951ef08ca5af331b637cfed4dee8447f18d1 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1113165 Reviewed-by: Aaron Wood <aaronwood@google.com> Fuchsia-Auto-Submit: Paul Kirth <paulkirth@google.com> Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.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.