Merge "rust: Allow any host tool for custom_bindgen" into main am: 00042a4875 am: 3f7fb697db am: a6f94a7d03

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2651301

Change-Id: I01909a204211db13100850c85aaca6b1bee49833
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-07-08 00:35:19 +00:00
committed by Automerger Merge Worker

View File

@@ -247,7 +247,7 @@ func (b *bindgenDecorator) GenerateSource(ctx ModuleContext, deps PathDeps) andr
var cmd, cmdDesc string
if b.Properties.Custom_bindgen != "" {
cmd = ctx.GetDirectDepWithTag(b.Properties.Custom_bindgen, customBindgenDepTag).(*Module).HostToolPath().String()
cmd = ctx.GetDirectDepWithTag(b.Properties.Custom_bindgen, customBindgenDepTag).(android.HostToolProvider).HostToolPath().String()
cmdDesc = b.Properties.Custom_bindgen
} else {
cmd = "$bindgenCmd"