diff options
author | 2023-10-02 11:39:17 -0700 | |
---|---|---|
committer | 2023-10-02 22:15:55 -0700 | |
commit | 004bd3f526714343209397881c81f857212a6967 (patch) | |
tree | b2a7ea2319a2683fbc091c997ad38479ae5eef62 /rust/coverage.go | |
parent | 0af40657ff73669a8d0099dc2d6a02d4f9b911c2 (diff) |
Revert "Split Rust crate builds into compile and link phases."
This reverts commit e7c71c344d462cac998b37d551bd78baa892082d.
The intermediates created by the separated rust compile steps are very
large, on the order of 60GB. This is more than CI can support for now,
revert the split into compile and link phases. This comes at the expense
of incremental build time, especially when modifying C/C++ sources that
are dependencies of rust modules.
Bug: 293349612
Test: builds
Change-Id: I81169e7d0727330c8de5e7688dcdc87fe7b8d3b5
Diffstat (limited to 'rust/coverage.go')
-rw-r--r-- | rust/coverage.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/coverage.go b/rust/coverage.go index 5216d6098..bc6504ddc 100644 --- a/rust/coverage.go +++ b/rust/coverage.go @@ -65,7 +65,7 @@ func (cov *coverage) flags(ctx ModuleContext, flags Flags, deps PathDeps) (Flags "-C instrument-coverage", "-g") flags.LinkFlags = append(flags.LinkFlags, profileInstrFlag, "-g", coverage.OutputFile().Path().String(), "-Wl,--wrap,open") - deps.LibDeps = append(deps.LibDeps, coverage.OutputFile().Path()) + deps.StaticLibs = append(deps.StaticLibs, coverage.OutputFile().Path()) // no_std modules are missing libprofiler_builtins which provides coverage, so we need to add it as a dependency. if rustModule, ok := ctx.Module().(*Module); ok && rustModule.compiler.noStdlibs() { |