summaryrefslogtreecommitdiff
path: root/build/art.go
diff options
context:
space:
mode:
Diffstat (limited to 'build/art.go')
-rw-r--r--build/art.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/art.go b/build/art.go
index c4df20d3d7..c4e9f9230f 100644
--- a/build/art.go
+++ b/build/art.go
@@ -52,6 +52,11 @@ func globalFlags(ctx android.LoadHookContext) ([]string, []string) {
gcType = "MS"
}
+ if ctx.Config().IsEnvTrue("ART_USE_SIMULATOR") {
+ cflags = append(cflags, "-DART_USE_SIMULATOR=1")
+ asflags = append(asflags, "-DART_USE_SIMULATOR=1")
+ }
+
cflags = append(cflags, "-DART_DEFAULT_GC_TYPE_IS_"+gcType)
if ctx.Config().IsEnvTrue("ART_HEAP_POISONING") {