diff --git a/scripts/build.py b/scripts/build.py index 185db08b..130e1ce9 100644 --- a/scripts/build.py +++ b/scripts/build.py @@ -153,10 +153,9 @@ if len(env_exclude): if target != 'order': print("calculating order for modules: " + ' '.join(modules)) order = [] +calculate_order(order, modules, glob_prereq_type) if args.ignore_deps: - order = args.modules -else: - calculate_order(order, modules, glob_prereq_type) + order = [m for m in order if m in args.modules] order = [m for m in order if m not in exclude] if target == 'order': print(' '.join(order))