Skip to content

Commit 2bcdcdd

Browse files
authored
Merge pull request #19475 from drodriguez/android-aarch64-adb_push_built_products
[android] adb_push_build_products.py support for aarch64.
2 parents 4f113f6 + b84f403 commit 2bcdcdd

File tree

1 file changed

+10
-1
lines changed
  • utils/android/adb_push_built_products

1 file changed

+10
-1
lines changed

utils/android/adb_push_built_products/main.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ def argument_parser():
4444
help='The path to an Android NDK. If specified, the libc++ library '
4545
'in that NDK will be pushed to the device.',
4646
default=os.getenv('ANDROID_NDK_HOME', None))
47+
parser.add_argument(
48+
'-a', '--destination-arch',
49+
help='The architecture of the host device. Used to determine the '
50+
'right library versions to send to the device.',
51+
choices=['armv7', 'aarch64'],
52+
default='armv7')
4753
return parser
4854

4955

@@ -75,7 +81,10 @@ def main():
7581
'cxx-stl',
7682
'llvm-libc++',
7783
'libs',
78-
'armeabi-v7a',
84+
{
85+
'armv7': 'armeabi-v7a',
86+
'aarch64': 'arm64-v8a',
87+
}[args.destination_arch],
7988
'libc++_shared.so')
8089
_push(libcpp, args.destination)
8190

0 commit comments

Comments
 (0)