Fix and check CLANG_CONFIG_UNKNOWN_CFLAGS

am: e8c5237775

* commit 'e8c5237775f413bbb56084e19054a3d979e15985':
  Fix and check CLANG_CONFIG_UNKNOWN_CFLAGS

Change-Id: I3725569bc11883534d4a41035d91a9599200a756
This commit is contained in:
Dan Willemsen
2016-05-24 01:09:13 +00:00
committed by android-build-merger
2 changed files with 3 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ var clangUnknownCflags = sorted([]string{
"-fno-tree-sra",
"-fprefetch-loop-arrays",
"-funswitch-loops",
"-Werror=unused-but-set-parameter",
"-Werror=unused-but-set-variable",
"-Wmaybe-uninitialized",
"-Wno-error=clobbered",
"-Wno-error=maybe-uninitialized",

View File

@@ -34,6 +34,7 @@ func makeVarsProvider(ctx android.MakeVarsContext) {
ctx.Strict("CLANG_CXX", "${clangBin}/clang++")
ctx.Strict("LLVM_AS", "${clangBin}/llvm-as")
ctx.Strict("LLVM_LINK", "${clangBin}/llvm-link")
ctx.StrictSorted("CLANG_CONFIG_UNKNOWN_CFLAGS", strings.Join(clangUnknownCflags, " "))
hostType := android.CurrentHostType()
arches := ctx.Config().HostArches[hostType]