diff --git a/cc/config/arm64_device.go b/cc/config/arm64_device.go index fb81e420f..380f20a7e 100644 --- a/cc/config/arm64_device.go +++ b/cc/config/arm64_device.go @@ -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, " ") }) diff --git a/cc/config/x86_64_device.go b/cc/config/x86_64_device.go index 171ab4f22..f88358aa9 100644 --- a/cc/config/x86_64_device.go +++ b/cc/config/x86_64_device.go @@ -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, " ") })