Export -D__BRILLO__ to make if necessary
am: 06f453359a
* commit '06f453359a6686e20d00e7ab661e39ce0e0e5bb5':
Export -D__BRILLO__ to make if necessary
Change-Id: I0b5236fe6a32c52e00e50d88b99928a1ad4ef6ad
This commit is contained in:
commit
da8b053323
|
@ -74,6 +74,10 @@ func makeVarsToolchain(ctx common.MakeVarsContext, secondPrefix string,
|
|||
|
||||
globalCflags := fmt.Sprintf("${commonGlobalCflags} ${%sGlobalCflags}", hod)
|
||||
|
||||
if hod.Device() && Bool(ctx.Config().ProductVariables.Brillo) {
|
||||
globalCflags += " -D__BRILLO__"
|
||||
}
|
||||
|
||||
ctx.StrictSorted(makePrefix+"GLOBAL_CFLAGS", strings.Join([]string{
|
||||
toolchain.ToolchainCflags(),
|
||||
globalCflags,
|
||||
|
@ -93,6 +97,10 @@ func makeVarsToolchain(ctx common.MakeVarsContext, secondPrefix string,
|
|||
|
||||
globalClangCflags := fmt.Sprintf("${commonClangGlobalCflags} ${clangExtraCflags} ${%sClangGlobalCflags}", hod)
|
||||
|
||||
if hod.Device() && Bool(ctx.Config().ProductVariables.Brillo) {
|
||||
globalClangCflags += " -D__BRILLO__"
|
||||
}
|
||||
|
||||
ctx.StrictSorted(clangPrefix+"GLOBAL_CFLAGS", strings.Join([]string{
|
||||
toolchain.ToolchainClangCflags(),
|
||||
globalClangCflags,
|
||||
|
|
Loading…
Reference in New Issue