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

am: bb363086c7

Change-Id: Ie810ff61af584daf7c45f41ae595516e0abc60b8
This commit is contained in:
bralee 2020-01-15 17:09:06 -08:00 committed by android-build-merger
commit 850a13f80c

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