summaryrefslogtreecommitdiffstats
path: root/lldb/scripts
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-03-04 01:31:29 +0000
committerZachary Turner <zturner@google.com>2017-03-04 01:31:29 +0000
commit8cb0a4901d69999c73ec6bc3df608db9ae35b415 (patch)
tree024dea905e42151fc4c3c7c886f0afdb0929f231 /lldb/scripts
parented96be99fa780edd51876f769b74252bfb2d8b1b (diff)
downloadbcm5719-llvm-8cb0a4901d69999c73ec6bc3df608db9ae35b415.tar.gz
bcm5719-llvm-8cb0a4901d69999c73ec6bc3df608db9ae35b415.zip
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
Diffstat (limited to 'lldb/scripts')
-rw-r--r--lldb/scripts/analyze-project-deps.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/scripts/analyze-project-deps.py b/lldb/scripts/analyze-project-deps.py
index 10a589b9c90..4fa19ea5717 100644
--- a/lldb/scripts/analyze-project-deps.py
+++ b/lldb/scripts/analyze-project-deps.py
@@ -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))
OpenPOWER on IntegriCloud