Turn on strict checking for C[PP]FLAGS make vars
Change-Id: I8448feb55b54515856798c1b3e8070d0e07e0b6c
This commit is contained in:
parent
3772da13fd
commit
b436fdee65
|
@ -74,12 +74,12 @@ func makeVarsToolchain(ctx common.MakeVarsContext, secondPrefix string,
|
|||
|
||||
globalCflags := fmt.Sprintf("${commonGlobalCflags} ${%sGlobalCflags}", hod)
|
||||
|
||||
ctx.CheckSorted(makePrefix+"GLOBAL_CFLAGS", strings.Join([]string{
|
||||
ctx.StrictSorted(makePrefix+"GLOBAL_CFLAGS", strings.Join([]string{
|
||||
toolchain.ToolchainCflags(),
|
||||
globalCflags,
|
||||
toolchain.Cflags(),
|
||||
}, " "))
|
||||
ctx.CheckSorted(makePrefix+"GLOBAL_LDFLAGS", strings.Join([]string{
|
||||
ctx.StrictSorted(makePrefix+"GLOBAL_LDFLAGS", strings.Join([]string{
|
||||
toolchain.ToolchainLdflags(),
|
||||
toolchain.Ldflags(),
|
||||
}, " "))
|
||||
|
@ -93,13 +93,13 @@ func makeVarsToolchain(ctx common.MakeVarsContext, secondPrefix string,
|
|||
|
||||
globalClangCflags := fmt.Sprintf("${commonClangGlobalCflags} ${clangExtraCflags} ${%sClangGlobalCflags}", hod)
|
||||
|
||||
ctx.CheckSorted(clangPrefix+"GLOBAL_CFLAGS", strings.Join([]string{
|
||||
ctx.StrictSorted(clangPrefix+"GLOBAL_CFLAGS", strings.Join([]string{
|
||||
toolchain.ToolchainClangCflags(),
|
||||
globalClangCflags,
|
||||
toolchain.ClangCflags(),
|
||||
clangExtras,
|
||||
}, " "))
|
||||
ctx.CheckSorted(clangPrefix+"GLOBAL_LDFLAGS", strings.Join([]string{
|
||||
ctx.StrictSorted(clangPrefix+"GLOBAL_LDFLAGS", strings.Join([]string{
|
||||
toolchain.ToolchainClangLdflags(),
|
||||
toolchain.ClangLdflags(),
|
||||
clangExtras,
|
||||
|
|
Loading…
Reference in New Issue