Merge "-D__ANDROID_NDK__ for SDK builds."

This commit is contained in:
Steven Moreland 2019-08-08 16:22:53 +00:00 committed by Gerrit Code Review
commit 08f9262577
1 changed files with 1 additions and 0 deletions

View File

@ -309,6 +309,7 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags, deps
flags.SystemIncludeFlags = append(flags.SystemIncludeFlags,
"-isystem "+getCurrentIncludePath(ctx).String(),
"-isystem "+getCurrentIncludePath(ctx).Join(ctx, config.NDKTriple(tc)).String())
flags.GlobalFlags = append(flags.GlobalFlags, "-D__ANDROID_NDK__")
}
if ctx.useVndk() {