diff --git a/cc/compdb.go b/cc/compdb.go index a9c5b5e9f..acfc924fd 100644 --- a/cc/compdb.go +++ b/cc/compdb.go @@ -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 }