From 1f27c96b1178fb3de46378cd2fb9d1c5aaa90448 Mon Sep 17 00:00:00 2001 From: Sindre Nistad Date: Wed, 24 Jan 2024 10:09:53 +0100 Subject: [PATCH] fix: GCC --- bin/find_dependants.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/find_dependants.py b/bin/find_dependants.py index 1b4b6145..265aeaa7 100644 --- a/bin/find_dependants.py +++ b/bin/find_dependants.py @@ -4,14 +4,19 @@ def parse_arguments(): parser = argparse.ArgumentParser("find-dependencies") - parser.add_argument("--use-preprocessor", action="store_true", help="Whether to use the C++ preprocessor on the source files befor finding their dependencies") + parser.add_argument("--use-preprocessor", action="store_true", help="Whether to use the C++ preprocessor on the source files before finding their dependencies") parser.add_argument("source_files", nargs="+", help="List of source files to look through") + parser.add_argument("--include-directories", help="List of directories to include while preprocessing the file(s), seperated by ';'", default="") return parser.parse_args() def run(): args = parse_arguments() - print(' '.join(utils.collect_sources(args.source_files, use_preprocessor=args.use_preprocessor))) + print(' '.join(utils.collect_sources( + args.source_files, + use_preprocessor=args.use_preprocessor, + include_directories=args.include_directories.split(";"), + ))) if __name__ == '__main__':