Merge "SOONG_* variables are emitted only for the BuildOS variants"

This commit is contained in:
Treehugger Robot
2020-12-17 23:44:37 +00:00
committed by Gerrit Code Review

View File

@@ -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())
}
}