diff --git a/project/scripts/dottyCompileBisect.scala b/project/scripts/dottyCompileBisect.scala index fc61e63bdb78..6d304a2030dc 100644 --- a/project/scripts/dottyCompileBisect.scala +++ b/project/scripts/dottyCompileBisect.scala @@ -70,4 +70,5 @@ class CommitBisect(files: List[String]): "git bisect start".! s"git bisect bad $fistBadHash".! s"git bisect good $lastGoodHash".! - s"git bisect run sh project/scripts/dottyCompileBisect.sh ${files.mkString(" ")}".! + s"""git bisect run 'rm -r out && mkdir out && mkdir out/bisect && sbt "clean; scalac -d out/bisect ${files.mkString(" ")}'""".! + s"git bisect reset".! diff --git a/project/scripts/dottyCompileBisect.sh b/project/scripts/dottyCompileBisect.sh deleted file mode 100644 index 1cead7a8aefd..000000000000 --- a/project/scripts/dottyCompileBisect.sh +++ /dev/null @@ -1,16 +0,0 @@ -# Usage -# > git bisect start -# > git bisect bad -# > git bisect good -# > git bisect run project/scripts/dottyCompileBisect.sh -# -# Note: Use dottyCompileBisect.scala for faster bisection over commits that spans several days - -files=$@ -shift - -rm -r out -mkdir out -mkdir out/bisect - -sbt "clean; scalac -d out/bisect $files"