Bug 1329306 - Also clobber the CMakeFiles directory; r=mystor

This directory can include variables for the toolchain path names,
for example, which are different from run to run on Windows TaskCluster
workers.
This commit is contained in:
Ehsan Akhgari 2017-01-05 01:00:14 -05:00
Родитель 180d53d0e9
Коммит b212e8e44a
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -205,6 +205,8 @@ def build_one_stage(cc, cxx, ld, ar, ranlib,
# previous CMake run is cleared before running it again.
if os.path.exists(build_dir + "/CMakeCache.txt"):
os.remove(build_dir + "/CMakeCache.txt")
if os.path.exists(build_dir + "/CMakeFiles"):
shutil.rmtree(build_dir + "/CMakeFiles")
# cmake doesn't deal well with backslashes in paths.
def slashify_path(path):