Add global C flags to compile_commands
This solves linter warnings in editor by adding flags to ignore errors we don't care about. This also means that compile_commands.json is closer to the flags we actually use for compilation. Test: Checked generated compile_commands for new flags. Change-Id: Id583da6eb5151a9baa9a47771f5f937c88bc43f7
This commit is contained in:
@@ -164,6 +164,7 @@ func getArguments(src android.Path, ctx android.SingletonContext, ccModule *Modu
|
||||
args = append(args, expandAllVars(ctx, ccModule.flags.Local.ConlyFlags)...)
|
||||
}
|
||||
args = append(args, expandAllVars(ctx, ccModule.flags.SystemIncludeFlags)...)
|
||||
args = append(args, expandAllVars(ctx, ccModule.flags.NoOverrideFlags)...)
|
||||
args = append(args, src.String())
|
||||
return args
|
||||
}
|
||||
|
Reference in New Issue
Block a user