Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit d856fc3

Browse files
authored
Enable Dart compressed pointers for 64-bit mobile targets (#27975)
* Enable Dart compressed pointers for 64-bit mobile targets * Fix. * Address code review comments.
1 parent 9cefdf8 commit d856fc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/gn

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,10 @@ def to_gn_args(args):
380380
# on Android.
381381
gn_args['bssl_use_clang_integrated_as'] = True
382382

383+
# Enable pointer compression on 64-bit mobile targets.
384+
if args.target_os in ['android', 'ios'] and gn_args['target_cpu'] in ['x64' , 'arm64']:
385+
gn_args['dart_use_compressed_pointers'] = True
386+
383387
return gn_args
384388

385389
def parse_args(args):

0 commit comments

Comments
 (0)