aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--project/Build.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/project/Build.scala b/project/Build.scala
index 0f8594556..c241f77bd 100644
--- a/project/Build.scala
+++ b/project/Build.scala
@@ -179,8 +179,10 @@ object DottyBuild extends Build {
) map { case (k, v) => (k, v.getAbsolutePath) }
},
- // Set run baseDir to be root of project, makes dotc saner
- baseDirectory in run := baseDirectory.value / "..",
+ // For convenience, change the baseDirectory when running the compiler
+ baseDirectory in (Compile, run) := baseDirectory.value / "..",
+ // .. but not when running partest
+ baseDirectory in (Test, run) := baseDirectory.value,
repl := Def.inputTaskDyn {
val args: Seq[String] = spaceDelimited("<arg>").parsed