Merge "Use __BIONIC_DEPRECATED_PAGE_SIZE_MACRO." into main

This commit is contained in:
Steven Moreland 2024-04-10 20:57:45 +00:00 committed by Gerrit Code Review
commit 8d1b2db53f
2 changed files with 4 additions and 4 deletions

View file

@ -101,8 +101,8 @@ func init() {
pctx.VariableFunc("Arm64Cflags", func(ctx android.PackageVarContext) string {
flags := arm64Cflags
if ctx.Config().NoBionicPageSizeMacro() {
flags = append(flags, "-D__BIONIC_NO_PAGE_SIZE_MACRO")
if !ctx.Config().NoBionicPageSizeMacro() {
flags = append(flags, "-D__BIONIC_DEPRECATED_PAGE_SIZE_MACRO")
}
return strings.Join(flags, " ")
})

View file

@ -110,8 +110,8 @@ func init() {
// Clang cflags
pctx.VariableFunc("X86_64Cflags", func(ctx android.PackageVarContext) string {
flags := x86_64Cflags
if ctx.Config().NoBionicPageSizeMacro() {
flags = append(flags, "-D__BIONIC_NO_PAGE_SIZE_MACRO")
if !ctx.Config().NoBionicPageSizeMacro() {
flags = append(flags, "-D__BIONIC_DEPRECATED_PAGE_SIZE_MACRO")
}
return strings.Join(flags, " ")
})