summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/art.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/art.go b/build/art.go
index 340b90de4f..8ba3ceda67 100644
--- a/build/art.go
+++ b/build/art.go
@@ -103,6 +103,10 @@ func globalFlags(ctx android.LoadHookContext) ([]string, []string) {
"-DART_STACK_OVERFLOW_GAP_x86_64=8192")
}
+ if (ctx.Config().PageSizeAgnostic()) {
+ cflags = append(cflags, "-DART_PAGE_SIZE_AGNOSTIC=1")
+ }
+
if ctx.Config().IsEnvTrue("ART_ENABLE_ADDRESS_SANITIZER") {
// Used to enable full sanitization, i.e., user poisoning, under ASAN.
cflags = append(cflags, "-DART_ENABLE_ADDRESS_SANITIZER=1")