@@ -293,7 +293,7 @@ def require_prebuilt_dist(func):
293
293
@wraps (func )
294
294
def wrapper_func (self , args ):
295
295
ctx = self .ctx
296
- ctx .set_archs (self .archs )
296
+ ctx .set_archs (self ._archs )
297
297
ctx .prepare_build_environment (user_sdk_dir = self .sdk_dir ,
298
298
user_ndk_dir = self .ndk_dir ,
299
299
user_android_api = self .android_api ,
@@ -2727,7 +2727,7 @@ def __init__(self):
2727
2727
self .android_api = args .android_api
2728
2728
self .ndk_version = args .ndk_version
2729
2729
2730
- self .archs = split_argument_list (args .arch )
2730
+ self ._archs = split_argument_list (args .arch )
2731
2731
2732
2732
# AND: Fail nicely if the args aren't handled yet
2733
2733
if args .extra_dist_dirs :
@@ -3016,6 +3016,13 @@ def print_context_info(self, args):
3016
3016
'ndk_platform' , 'ndk_ver' , 'android_api' ):
3017
3017
print ('{} is {}' .format (attribute , getattr (ctx , attribute )))
3018
3018
3019
+ def archs (self , args ):
3020
+ '''List the target architectures available to be built for.'''
3021
+ print ('{Style.BRIGHT}Available target architectures are:'
3022
+ '{Style.RESET_ALL}' .format (Style = Out_Style ))
3023
+ for arch in self .ctx .archs :
3024
+ print (' {}' .format (arch .arch ))
3025
+
3019
3026
def dists (self , args ):
3020
3027
'''The same as :meth:`distributions`.'''
3021
3028
self .distributions (args )
0 commit comments