mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 07:13:56 -04:00
waf: avoid problem with custom build server
this happens on custom build server when building into a new directory
This commit is contained in:
parent
4f4a0a02f6
commit
fadadfb50e
@ -76,8 +76,11 @@ def _depends_on_vehicle(bld, source_node):
|
||||
|
||||
|
||||
if path not in _depends_on_vehicle_cache:
|
||||
s = _remove_comments(source_node.read())
|
||||
_depends_on_vehicle_cache[path] = _macros_re.search(s) is not None
|
||||
try:
|
||||
s = _remove_comments(source_node.read())
|
||||
_depends_on_vehicle_cache[path] = _macros_re.search(s) is not None
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
return _depends_on_vehicle_cache[path]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user