Port GLOBAL[_CLANG]_CFLAGS_NO_OVERRIDE from make

Change-Id: I4f0f8ec7620e4477f60bf9cf1ae0c005470c89d4
This commit is contained in:
Dan Willemsen
2016-03-03 17:21:04 -08:00
parent f778e12c57
commit be03f346b3
3 changed files with 23 additions and 0 deletions

View File

@@ -101,6 +101,12 @@ func init() {
pctx.StaticVariable("clangExtraTargetCflags", strings.Join([]string{
"-nostdlibinc",
}, " "))
pctx.StaticVariable("clangExtraNoOverrideCflags", strings.Join([]string{
"-Werror=address-of-temporary",
"-Werror=null-dereference",
"-Werror=return-type",
}, " "))
}
func clangFilterUnknownCflags(cflags []string) []string {