Tools: fixed SITL build

This commit is contained in:
Andrew Tridgell 2020-05-16 10:39:14 +10:00
parent c5c171b359
commit a349a2f956
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ _depends_on_vehicle_cache = {}
def _depends_on_vehicle(bld, source_node):
path = source_node.srcpath()
if not bld.env.BUILDROOT:
bld.env.BUILDROOT = bld.bldnode.make_node('').abspath()
if path.startswith(bld.env.BUILDROOT) or path.startswith("build/"):
_depends_on_vehicle_cache[path] = False