diff --git a/cc/config/arm64_device.go b/cc/config/arm64_device.go index 10342a3ba..5b41be38a 100644 --- a/cc/config/arm64_device.go +++ b/cc/config/arm64_device.go @@ -103,8 +103,8 @@ func init() { exportedVars.ExportStringList("Arm64Cflags", arm64Cflags) 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 ca2c2b7b6..dd26d024b 100644 --- a/cc/config/x86_64_device.go +++ b/cc/config/x86_64_device.go @@ -112,8 +112,8 @@ func init() { exportedVars.ExportStringList("X86_64Cflags", x86_64Cflags) 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, " ") })