mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
waf: toolchain: fix Clang toolchain detection
This commit is contained in:
parent
5bcd1b02ef
commit
0eaf6f17c8
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user