[Lldb-commits] [lldb] r296947 - Fix a bug in the dep analysis script.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 3 17:31:29 PST 2017
Author: zturner
Date: Fri Mar 3 19:31:29 2017
New Revision: 296947
URL: http://llvm.org/viewvc/llvm-project?rev=296947&view=rev
Log:
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.
Modified:
lldb/trunk/scripts/analyze-project-deps.py
Modified: lldb/trunk/scripts/analyze-project-deps.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/analyze-project-deps.py?rev=296947&r1=296946&r2=296947&view=diff
==============================================================================
--- lldb/trunk/scripts/analyze-project-deps.py (original)
+++ lldb/trunk/scripts/analyze-project-deps.py Fri Mar 3 19:31:29 2017
@@ -35,6 +35,7 @@ for (base, dirs, files) in os.walk(inc_d
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))
More information about the lldb-commits
mailing list