waf: toolchain: fix Clang toolchain detection

This commit is contained in:
Francisco Ferreira 2016-03-29 16:42:37 +01:00 committed by Lucas De Marchi
parent 5bcd1b02ef
commit 0eaf6f17c8
1 changed files with 4 additions and 1 deletions

View File

@ -49,7 +49,10 @@ def _clang_cross_support(cfg):
prefix = cfg.env.TOOLCHAIN + '-'
cfg.find_program(prefix + 'gcc', var='CROSS_GCC')
try:
cfg.find_program(prefix + 'gcc', var='CROSS_GCC')
except Errors.ConfigurationError as e:
cfg.fatal('toolchain: clang: couldn\'t find cross GCC', ex=e)
environ = dict(os.environ)
if 'TOOLCHAIN_CROSS_AR' in environ: