diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/art.go | 5 |
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") { |