Merge "AIDEGen:fix module_bp_cc_deps.json content error."

This commit is contained in:
Treehugger Robot 2020-01-16 00:20:40 +00:00 committed by Gerrit Code Review
commit bb363086c7
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ func parseCompilerCCParameters(ctx android.SingletonContext, params []string) cc
compilerParams.HeaderSearchPath =
append(compilerParams.HeaderSearchPath, strings.TrimPrefix(param, "-I"))
case systemHeaderSearchPath:
if i < len(params)-1 {
if i < len(cparams)-1 {
compilerParams.SystemHeaderSearchPath = append(compilerParams.SystemHeaderSearchPath, cparams[i+1])
}
i = i + 1