tools: Make circular_includes check more robust

Allows for an arbitrary path to be applied to kernel_all.c in case the build is not
happening in the current working directory
This commit is contained in:
Adrian Danis 2017-05-31 14:37:37 +10:00
parent ebbccaac24
commit 3679b88309

View file

@ -15,7 +15,7 @@ def main():
resulting in the loop is printed out.
"""
kernel_all_re = re.compile(r'^# 1 "kernel_all\.c"')
kernel_all_re = re.compile(r'^# 1 ".*kernel_all\.c"')
header_re = re.compile(r'^# (\d+) "(.*\..)"')
file_stack = []