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

am: c8b28a367d

Change-Id: Ibf6814ed3367b028a8ec31d255cb94c1dc7eef94
This commit is contained in:
Alex Light 2018-10-02 15:09:05 -07:00 committed by android-build-merger
commit f9a6b7e8f5

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
}