diff --git a/android/prebuilt_build_tool.go b/android/prebuilt_build_tool.go index b00dc2f2e..516d0420a 100644 --- a/android/prebuilt_build_tool.go +++ b/android/prebuilt_build_tool.go @@ -86,6 +86,9 @@ func (t *prebuiltBuildTool) GenerateAndroidBuildActions(ctx ModuleContext) { func (t *prebuiltBuildTool) MakeVars(ctx MakeVarsModuleContext) { if makeVar := String(t.properties.Export_to_make_var); makeVar != "" { + if t.Target().Os != BuildOs { + return + } ctx.StrictRaw(makeVar, t.toolPath.String()) } }