File tree 6 files changed +32
-0
lines changed
6 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ testlogs/
64
64
local /
65
65
compiler /test /debug /Gen.jar
66
66
67
+ /bin /.cp
68
+
67
69
before-pickling.txt
68
70
after-pickling.txt
69
71
bench /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 {
202
202
203
203
val repl = taskKey[Unit ](" spawns a repl with the correct classpath" )
204
204
205
+ val buildQuick = taskKey[Unit ](" builds the compiler and enables bin/scalaQ, bin/scalacQ, bin/scaladocQ" )
206
+
205
207
// Compiles the documentation and static site
206
208
val genDocs = inputKey[Unit ](" run scaladoc to generate static documentation site" )
207
209
@@ -2140,6 +2142,10 @@ object Build {
2140
2142
// default.
2141
2143
addCommandAlias(" publishLocal" , " scala3-bootstrapped/publishLocal" ),
2142
2144
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
+ },
2143
2149
(Compile / console) := (Compile / console).dependsOn(Def .task {
2144
2150
import _root_ .scala .io .AnsiColor ._
2145
2151
val msg = " `console` uses the reference Scala version. Use `repl` instead."
You can’t perform that action at this time.
0 commit comments