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():
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
You can’t perform that action at this time.
0 commit comments