aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2015-10-23 13:18:14 +0200
committerDmitry Petrashko <dark@d-d.me>2015-10-23 13:18:14 +0200
commit3c6f28ba36e3e908c7a5e313e96e7d34f3da62fe (patch)
tree10ad0bcd2bd89275cd82c60c631bcacd82dafba6
parent73f725c361a8d990d698c0aeb6889e272759ebeb (diff)
parent1f9131273dc0ac9811532a35349c6bd58711eb7e (diff)
downloaddotty-3c6f28ba36e3e908c7a5e313e96e7d34f3da62fe.tar.gz
dotty-3c6f28ba36e3e908c7a5e313e96e7d34f3da62fe.tar.bz2
dotty-3c6f28ba36e3e908c7a5e313e96e7d34f3da62fe.zip
Merge pull request #852 from dotty-staging/fix-script
Fix bug in dotc script
-rwxr-xr-xbin/dotc2
-rw-r--r--test/dotc/build.scala1
2 files changed, 2 insertions, 1 deletions
diff --git a/bin/dotc b/bin/dotc
index aa8a9e44a..7b90b5220 100755
--- a/bin/dotc
+++ b/bin/dotc
@@ -192,7 +192,7 @@ trap onExit INT
# If using the boot classpath, also pass an empty classpath
# to java to suppress "." from materializing.
classpathArgs () {
- if [[ -n $bootstrapped ]]; then
+ if [[ "true" == $bootstrapped ]]; then
checkjar $DOTTY_JAR "test:runMain dotc.build" src
toolchain="$DOTTY_JAR:$SCALA_LIBRARY_JAR:$SCALA_REFLECT_JAR:$SCALA_COMPILER_JAR:$JLINE_JAR"
else
diff --git a/test/dotc/build.scala b/test/dotc/build.scala
index cb5f7ab95..9f47796c3 100644
--- a/test/dotc/build.scala
+++ b/test/dotc/build.scala
@@ -19,6 +19,7 @@ object build extends tests {
}
def main(args: Array[String]): Unit = {
+ println("------------ Building dotty ------------")
deleteFilesInFolder(new File(defaultOutputDir)) // clear previous output
dotty // build output dir
val p = Runtime.getRuntime.exec(Array("jar", "cf", "dotty.jar", "-C", "out", "."))