purge build dir;
authorwenzelm
Sat, 12 Dec 2020 20:02:46 +0100
changeset 72891 6751057a64b1
parent 72890 42d75bf8725c
child 72892 d15c0c7ae092
purge build dir;
src/Pure/Admin/build_vampire.scala
--- a/src/Pure/Admin/build_vampire.scala	Sat Dec 12 19:25:42 2020 +0100
+++ b/src/Pure/Admin/build_vampire.scala	Sat Dec 12 20:02:46 2020 +0100
@@ -61,7 +61,9 @@
         progress.bash("git checkout --quiet --detach " + Bash.string(rev),
           cwd = source_dir.file, echo = verbose).check
 
-        val build_dir = Isabelle_System.make_directory(source_dir + Path.explode("build"))
+        val build_dir = source_dir + Path.explode("build")
+        Isabelle_System.rm_tree(build_dir)
+        Isabelle_System.make_directory(build_dir)
 
         val cmake_opts = if (Platform.is_linux) "-DBUILD_SHARED_LIBS=0 " else ""
         val cmake_out =