@@ -47,35 +47,34 @@ def get_env(self):
47
47
48
48
toolchain_prefix = self .ctx .toolchain_prefix
49
49
toolchain_version = self .ctx .toolchain_version
50
+ command_prefix = self .command_prefix
50
51
51
52
env ['TOOLCHAIN_PREFIX' ] = toolchain_prefix
52
53
env ['TOOLCHAIN_VERSION' ] = toolchain_version
53
54
54
- if toolchain_prefix == 'x86' :
55
- toolchain_prefix = 'i686-linux-android'
56
55
print ('path is' , environ ['PATH' ])
57
- cc = find_executable ('{toolchain_prefix }-gcc' .format (
58
- toolchain_prefix = toolchain_prefix ), path = environ ['PATH' ])
56
+ cc = find_executable ('{command_prefix }-gcc' .format (
57
+ command_prefix = command_prefix ), path = environ ['PATH' ])
59
58
if cc is None :
60
59
warning ('Couldn\' t find executable for CC. This indicates a '
61
60
'problem locating the {} executable in the Android '
62
61
'NDK, not that you don\' t have a normal compiler '
63
62
'installed. Exiting.' )
64
63
exit (1 )
65
64
66
- env ['CC' ] = '{toolchain_prefix }-gcc {cflags}' .format (
67
- toolchain_prefix = toolchain_prefix ,
65
+ env ['CC' ] = '{command_prefix }-gcc {cflags}' .format (
66
+ command_prefix = command_prefix ,
68
67
cflags = env ['CFLAGS' ])
69
- env ['CXX' ] = '{toolchain_prefix }-g++ {cxxflags}' .format (
70
- toolchain_prefix = toolchain_prefix ,
68
+ env ['CXX' ] = '{command_prefix }-g++ {cxxflags}' .format (
69
+ command_prefix = command_prefix ,
71
70
cxxflags = env ['CXXFLAGS' ])
72
71
73
- env ['AR' ] = '{}-ar' .format (toolchain_prefix )
74
- env ['RANLIB' ] = '{}-ranlib' .format (toolchain_prefix )
75
- env ['LD' ] = '{}-ld' .format (toolchain_prefix )
76
- env ['STRIP' ] = '{}-strip --strip-unneeded' .format (toolchain_prefix )
72
+ env ['AR' ] = '{}-ar' .format (command_prefix )
73
+ env ['RANLIB' ] = '{}-ranlib' .format (command_prefix )
74
+ env ['LD' ] = '{}-ld' .format (command_prefix )
75
+ env ['STRIP' ] = '{}-strip --strip-unneeded' .format (command_prefix )
77
76
env ['MAKE' ] = 'make -j5'
78
- env ['READELF' ] = '{}-readelf' .format (toolchain_prefix )
77
+ env ['READELF' ] = '{}-readelf' .format (command_prefix )
79
78
80
79
hostpython_recipe = Recipe .get_recipe ('hostpython2' , self .ctx )
81
80
0 commit comments