Skip to content

Commit

Permalink
fix: GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
sindre-nistad committed Jan 24, 2024
1 parent ee17fc5 commit 1f27c96
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bin/find_dependants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__':
Expand Down

0 comments on commit 1f27c96

Please sign in to comment.