Export -D__BRILLO__ to make if necessary am: 06f453359a
am: da8b053323
am: 224361ead4
* commit '224361ead4ff8a831eb1df781d4a39093f4e40aa':
Export -D__BRILLO__ to make if necessary
Change-Id: Ie77dc5ee2480c25f0ed9deb13a09db996e6830a2
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user