Don't enable_profiling for x86 Android. (flutter/engine#3848)

This somehow introduces text relocations even though we always use -fPIC.
This commit is contained in:
Ryan Macnak
2017-07-06 14:40:34 -07:00
committed by GitHub
parent 89362b5fa4
commit cff3c24418

View File

@@ -156,7 +156,9 @@ def to_gn_args(args):
gn_args['skia_use_vulkan'] = True
gn_args['skia_vulkan_headers'] = "//third_party/vulkan/src"
gn_args['enable_profiling'] = args.runtime_mode != 'release'
# We should not need a special case for x86, but this seems to introduce text relocations
# even with -fPIC everywhere.
gn_args['enable_profiling'] = args.runtime_mode != 'release' and args.android_cpu != 'x86'
return gn_args