File tree Expand file tree Collapse file tree 6 files changed +32
-0
lines changed Expand file tree Collapse file tree 6 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ testlogs/
6464local /
6565compiler /test /debug /Gen.jar
6666
67+ /bin /.cp
68+
6769before-pickling.txt
6870after-pickling.txt
6971bench /compile.txt
Original file line number Diff line number Diff line change 1+ cp=$(cat $ROOT/bin/.cp) 2> /dev/null
2+
3+ if [[ "$cp" == "" ]]; then
4+ echo "run 'sbt buildQuick' first"
5+ exit 1
6+ fi
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " >& /dev/null && pwd) /.."
4+ . $ROOT /bin/commonQ
5+
6+ java -cp $cp dotty.tools.MainGenericRunner -usejavacp " $@ "
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " >& /dev/null && pwd) /.."
4+ . $ROOT /bin/commonQ
5+
6+ java -cp $cp dotty.tools.dotc.Main -usejavacp " $@ "
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " >& /dev/null && pwd) /.."
4+ . $ROOT /bin/commonQ
5+
6+ java -cp $cp dotty.tools.scaladoc.Main -usejavacp " $@ "
Original file line number Diff line number Diff line change @@ -202,6 +202,8 @@ object Build {
202202
203203 val repl = taskKey[Unit ](" spawns a repl with the correct classpath" )
204204
205+ val buildQuick = taskKey[Unit ](" builds the compiler and enables bin/scalaQ, bin/scalacQ, bin/scaladocQ" )
206+
205207 // Compiles the documentation and static site
206208 val genDocs = inputKey[Unit ](" run scaladoc to generate static documentation site" )
207209
@@ -2140,6 +2142,10 @@ object Build {
21402142 // default.
21412143 addCommandAlias(" publishLocal" , " scala3-bootstrapped/publishLocal" ),
21422144 repl := (`scala3-compiler-bootstrapped` / repl).value,
2145+ buildQuick := {
2146+ val cp = (LocalProject (" scaladoc" ) / Compile / fullClasspath).value.map(_.data.getAbsolutePath).mkString(" :" )
2147+ IO .write(baseDirectory.value / " bin" / " .cp" , cp)
2148+ },
21432149 (Compile / console) := (Compile / console).dependsOn(Def .task {
21442150 import _root_ .scala .io .AnsiColor ._
21452151 val msg = " `console` uses the reference Scala version. Use `repl` instead."
You can’t perform that action at this time.
0 commit comments