diff --git a/rust/bindgen.go b/rust/bindgen.go index 3db2d654f..09af649f6 100644 --- a/rust/bindgen.go +++ b/rust/bindgen.go @@ -32,7 +32,7 @@ var ( bindgenClangVersion = "clang-r383902c" //TODO(b/160803703) Use a prebuilt bindgen instead of the built bindgen. - _ = pctx.SourcePathVariable("bindgenCmd", "out/host/${config.HostPrebuiltTag}/bin/bindgen") + _ = pctx.HostBinToolVariable("bindgenCmd", "bindgen") _ = pctx.SourcePathVariable("bindgenClang", "${cc_config.ClangBase}/${config.HostPrebuiltTag}/"+bindgenClangVersion+"/bin/clang") _ = pctx.SourcePathVariable("bindgenLibClang",