summaryrefslogtreecommitdiff
path: root/rust/doc.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2025-03-03 15:11:32 -0800
committer Cole Faust <colefaust@google.com> 2025-03-03 17:35:44 -0800
commit0523b8f1faec114e3c3eeefe02aa3a6988ffb8b9 (patch)
treef70e014d958d9272a3b37e7cdf6d7de77d77a813 /rust/doc.go
parent339f20817ae97ca1e9d3cc29a89b185834d79077 (diff)
Generate module targets per-variant
Previously, the module target was only generated for the final varinat, but it visited all its other variants to get output files from them. This was mostly fine, except for that now there's ctx.Device() and ctx.Target().HostCross checks in it. For a module with both device and host variants, only one of these checks would apply to all variants of the device, leading to missing -target or -host phonies. Instead, just create the phonies on all variants. We'll rely on the fact that phonies are merged/deduped, so saying `m foo` will still build all variants of foo. But now `m foo-host` or `m foo-target` will correctly only build the host or target variants. Fixes: 400503755 Test: atest CtsCompilationTestCases:android.compilation.cts.CompilationTest on a soong-only build Change-Id: I4896a6cb0461b373ec1853809fa862f9b852096c
Diffstat (limited to 'rust/doc.go')
0 files changed, 0 insertions, 0 deletions