Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: tools/clang/scripts/update.py

Issue 1794333003: Clang update.py: clobber more CMake cache files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove CMakeFiles recursively Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/scripts/update.py
diff --git a/tools/clang/scripts/update.py b/tools/clang/scripts/update.py
index 4b5b053274bfd8e047c81eeb6501a38874232c96..0e2028e3b44ff78f4cd40b591750c2803feba2d3 100755
--- a/tools/clang/scripts/update.py
+++ b/tools/clang/scripts/update.py
@@ -173,10 +173,12 @@ def RmTree(dir):
def RmCmakeCache(dir):
- """Delete CMakeCache.txt files under dir recursively."""
- for dirpath, _, files in os.walk(dir):
+ """Delete CMake cache related files from dir."""
+ for dirpath, dirs, files in os.walk(dir):
if 'CMakeCache.txt' in files:
os.remove(os.path.join(dirpath, 'CMakeCache.txt'))
+ if 'CMakeFiles' in dirs:
+ RmTree(os.path.join(dirpath, 'CMakeFiles'))
def RunCommand(command, msvc_arch=None, env=None, fail_hard=True):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698