Fix a bug in the dep analysis script.

It wasn't always normalizing slashes correctly, so you'd end
up with the same thing in the map twice.

llvm-svn: 296947
This commit is contained in:
Zachary Turner 2017-03-04 01:31:29 +00:00
parent ed96be99fa
commit 8cb0a4901d
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ for (base, dirs, files) in os.walk(inc_dir):
relative = os.path.relpath(base, inc_dir)
inc_files = filter(lambda x : os.path.splitext(x)[1] in [".h"], files)
deps = set()
relative = relative.replace("\\", "/")
for inc in inc_files:
inc_path = os.path.join(base, inc)
deps.update(scan_deps(relative, inc_path))