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:
parent
ed96be99fa
commit
8cb0a4901d
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue