diff --git a/tools/ninja_dependency_analysis/collect_ninja_inputs.py b/tools/ninja_dependency_analysis/collect_ninja_inputs.py index 8f626df43..e7f2234c8 100755 --- a/tools/ninja_dependency_analysis/collect_ninja_inputs.py +++ b/tools/ninja_dependency_analysis/collect_ninja_inputs.py @@ -30,7 +30,7 @@ def build_cmd(ninja_binary, ninja_file, target, exempted_file_list): if exempted_file_list and exempted_file_list.exists(): with open(exempted_file_list) as fin: for l in map(str.strip, fin.readlines()): - if l: + if l and not l.startswith('#'): cmd.extend(['-e', l]) cmd.append(target)