Skip to content

Commit b774e6c

Browse files
committed
Improved error about missing CC
1 parent 326252f commit b774e6c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pythonforandroid/toolchain.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,10 @@ def get_env(self):
344344
cc = find_executable('{toolchain_prefix}-gcc'.format(
345345
toolchain_prefix=toolchain_prefix), path=environ['PATH'])
346346
if cc is None:
347-
warning('Couldn\'t find executable for CC. Exiting.')
347+
warning('Couldn\'t find executable for CC. This indicates a '
348+
'problem locating the {} executable in the Android '
349+
'NDK, not that you don\'t have a normal compiler '
350+
'installed. Exiting.')
348351
exit(1)
349352

350353
env['CC'] = '{toolchain_prefix}-gcc {cflags}'.format(

0 commit comments

Comments
 (0)