Skip to content

Commit

Permalink
Enable Dart compressed pointers for 64-bit mobile targets (flutter#27975
Browse files Browse the repository at this point in the history
)

* Enable Dart compressed pointers for 64-bit mobile targets

* Fix.

* Address code review comments.
  • Loading branch information
a-siva authored Aug 12, 2021
1 parent 9cefdf8 commit d856fc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/gn
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,10 @@ 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 in ['android', 'ios'] and gn_args['target_cpu'] in ['x64' , 'arm64']:
gn_args['dart_use_compressed_pointers'] = True

return gn_args

def parse_args(args):
Expand Down

0 comments on commit d856fc3

Please sign in to comment.