| 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):
|
|
|