Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Commit 1141601

Browse files
committed
Use the correct scalac options when run from sbt
This is required to *really* pass the `-optimise` flag down to scalac in PR validation builds. The previous change in #64 passed the flag to partest but partest didn’t pass the correct settings on to scalac.
1 parent 8b87fab commit 1141601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/scala/tools/partest/nest/DirectCompiler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class DirectCompiler(val runner: Runner) {
6767
val Xplugin = if (xplugs.isEmpty) Nil else List(xprefix +
6868
(xplugs map (_ stripPrefix xprefix) flatMap (_ split pathSeparator) map absolutize mkString pathSeparator)
6969
)
70-
runner.suiteRunner.scalacExtraArgs ++ PartestDefaults.scalacOpts.split(' ') ++ others ++ Xplugin
70+
runner.suiteRunner.scalacExtraArgs ++ runner.suiteRunner.scalacOpts.split(' ') ++ others ++ Xplugin
7171
}
7272

7373
def compile(opts0: List[String], sources: List[File]): TestState = {

0 commit comments

Comments
 (0)