From 1ef9c0dd2601ee24b2b295ce0da1e856fe15240c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Christian=20Kirchhof?= Date: Fri, 30 Mar 2018 09:24:09 -0700 Subject: [PATCH] build: (fixes #2902) missing modules cause Waf to run indefinitely --- wscript | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/wscript b/wscript index 8e8b77459..58a9f01c0 100644 --- a/wscript +++ b/wscript @@ -892,9 +892,16 @@ def build(bld): if not dep.startswith('ns3-'): continue if dep not in modules and dep not in contribModules: - if dep in env['NS3_MODULES']: modules.append(dep) - elif dep in env['NS3_CONTRIBUTED_MODULES']: contribModules.append(dep) - changed = True + if dep in env['NS3_MODULES']: + modules.append(dep) + changed = True + elif dep in env['NS3_CONTRIBUTED_MODULES']: + contribModules.append(dep) + changed = True + else: + Logs.error("Error: Cannot find dependency \'" + dep[4:] + "\' of module \'" + + module[4:] + "\'; check the module wscript for errors.") + raise SystemExit(1) env['NS3_ENABLED_MODULES'] = modules