Fix and check CLANG_CONFIG_UNKNOWN_CFLAGS am: e8c5237775
am: c99fc3d097
am: f1a1389e65
* commit 'f1a1389e65bd8dc0e76080ab0b3c78e4a142f0e2':
Fix and check CLANG_CONFIG_UNKNOWN_CFLAGS
Change-Id: I7b582fde7082c89b1b2a42121b4c6c6c24f98b58
This commit is contained in:
@@ -15,6 +15,8 @@ var clangUnknownCflags = sorted([]string{
|
|||||||
"-fno-tree-sra",
|
"-fno-tree-sra",
|
||||||
"-fprefetch-loop-arrays",
|
"-fprefetch-loop-arrays",
|
||||||
"-funswitch-loops",
|
"-funswitch-loops",
|
||||||
|
"-Werror=unused-but-set-parameter",
|
||||||
|
"-Werror=unused-but-set-variable",
|
||||||
"-Wmaybe-uninitialized",
|
"-Wmaybe-uninitialized",
|
||||||
"-Wno-error=clobbered",
|
"-Wno-error=clobbered",
|
||||||
"-Wno-error=maybe-uninitialized",
|
"-Wno-error=maybe-uninitialized",
|
||||||
|
@@ -34,6 +34,7 @@ func makeVarsProvider(ctx android.MakeVarsContext) {
|
|||||||
ctx.Strict("CLANG_CXX", "${clangBin}/clang++")
|
ctx.Strict("CLANG_CXX", "${clangBin}/clang++")
|
||||||
ctx.Strict("LLVM_AS", "${clangBin}/llvm-as")
|
ctx.Strict("LLVM_AS", "${clangBin}/llvm-as")
|
||||||
ctx.Strict("LLVM_LINK", "${clangBin}/llvm-link")
|
ctx.Strict("LLVM_LINK", "${clangBin}/llvm-link")
|
||||||
|
ctx.StrictSorted("CLANG_CONFIG_UNKNOWN_CFLAGS", strings.Join(clangUnknownCflags, " "))
|
||||||
|
|
||||||
hostType := android.CurrentHostType()
|
hostType := android.CurrentHostType()
|
||||||
arches := ctx.Config().HostArches[hostType]
|
arches := ctx.Config().HostArches[hostType]
|
||||||
|
Reference in New Issue
Block a user