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 and filmil committed Apr 21, 2022
1 parent c9cf33b commit daa120c
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 daa120c

Please sign in to comment.