File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
utils/android/adb_push_built_products Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,12 @@ def argument_parser():
44
44
help = 'The path to an Android NDK. If specified, the libc++ library '
45
45
'in that NDK will be pushed to the device.' ,
46
46
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' )
47
53
return parser
48
54
49
55
@@ -75,7 +81,10 @@ def main():
75
81
'cxx-stl' ,
76
82
'llvm-libc++' ,
77
83
'libs' ,
78
- 'armeabi-v7a' ,
84
+ {
85
+ 'armv7' : 'armeabi-v7a' ,
86
+ 'aarch64' : 'arm64-v8a' ,
87
+ }[args .destination_arch ],
79
88
'libc++_shared.so' )
80
89
_push (libcpp , args .destination )
81
90
You can’t perform that action at this time.
0 commit comments