Use __BIONIC_DEPRECATED_PAGE_SIZE_MACRO.
The default compilation behavior is set to be the future direction, and a flag is set for backwards compatibility. Bug: 312546062 Test: build/boot Change-Id: Ibf87cbb2ab5da8640bcf7eb5f8cd643bf500e2e5
This commit is contained in:
parent
afacc090e8
commit
2a481368b8
2 changed files with 4 additions and 4 deletions
|
@ -103,8 +103,8 @@ func init() {
|
||||||
exportedVars.ExportStringList("Arm64Cflags", arm64Cflags)
|
exportedVars.ExportStringList("Arm64Cflags", arm64Cflags)
|
||||||
pctx.VariableFunc("Arm64Cflags", func(ctx android.PackageVarContext) string {
|
pctx.VariableFunc("Arm64Cflags", func(ctx android.PackageVarContext) string {
|
||||||
flags := arm64Cflags
|
flags := arm64Cflags
|
||||||
if ctx.Config().NoBionicPageSizeMacro() {
|
if !ctx.Config().NoBionicPageSizeMacro() {
|
||||||
flags = append(flags, "-D__BIONIC_NO_PAGE_SIZE_MACRO")
|
flags = append(flags, "-D__BIONIC_DEPRECATED_PAGE_SIZE_MACRO")
|
||||||
}
|
}
|
||||||
return strings.Join(flags, " ")
|
return strings.Join(flags, " ")
|
||||||
})
|
})
|
||||||
|
|
|
@ -112,8 +112,8 @@ func init() {
|
||||||
exportedVars.ExportStringList("X86_64Cflags", x86_64Cflags)
|
exportedVars.ExportStringList("X86_64Cflags", x86_64Cflags)
|
||||||
pctx.VariableFunc("X86_64Cflags", func(ctx android.PackageVarContext) string {
|
pctx.VariableFunc("X86_64Cflags", func(ctx android.PackageVarContext) string {
|
||||||
flags := x86_64Cflags
|
flags := x86_64Cflags
|
||||||
if ctx.Config().NoBionicPageSizeMacro() {
|
if !ctx.Config().NoBionicPageSizeMacro() {
|
||||||
flags = append(flags, "-D__BIONIC_NO_PAGE_SIZE_MACRO")
|
flags = append(flags, "-D__BIONIC_DEPRECATED_PAGE_SIZE_MACRO")
|
||||||
}
|
}
|
||||||
return strings.Join(flags, " ")
|
return strings.Join(flags, " ")
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue