rust: Allow any host tool for custom_bindgen
Switch custom_bindgen to use any HostToolProvider instead of just Rust modules, so any host binary can be used as the bindgen wrapper. Bug: 242243245 Test: presubmit Change-Id: I9ba189b2857b3049dcf14842c178ce5846bab2f7
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user