Enable Dart compressed pointers for 64-bit mobile targets (flutter/engine#27373)

This commit is contained in:
Liam Appelbe
2021-07-20 15:23:49 -07:00
committed by GitHub
parent 934eced2e4
commit 6657092b22

View File

@@ -380,6 +380,11 @@ def to_gn_args(args):
# on Android.
gn_args['bssl_use_clang_integrated_as'] = True
# Enable pointer compression on 64-bit mobile targets.
if (args.target_os == 'android' or args.target_os == 'ios') and (
gn_args['target_cpu'] == 'x64' or gn_args['target_cpu'] == 'arm64'):
gn_args['dart_use_compressed_pointers'] = True
return gn_args
def parse_args(args):