Merge "Don't include empty-string arguments in compile_commands.json"

This commit is contained in:
Treehugger Robot 2018-10-02 21:59:23 +00:00 committed by Gerrit Code Review
commit c8b28a367d
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ func generateCompdbProject(compiledModule CompiledInterface, ctx android.Singlet
func evalAndSplitVariable(ctx android.SingletonContext, str string) ([]string, error) {
evaluated, err := ctx.Eval(pctx, str)
if err == nil {
return strings.Split(evaluated, " "), nil
return strings.Fields(evaluated), nil
}
return []string{""}, err
}