Skip to content

Commit

Permalink
Merge pull request #5432 from dwijnand/partest-scalac_opts
Browse files Browse the repository at this point in the history
Add support for -Dpartest.scalac_opts to the partest command
  • Loading branch information
adriaanm committed Nov 10, 2016
2 parents c39b31c + acdc8e5 commit c670662
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion project/PartestUtil.scala
Expand Up @@ -86,7 +86,10 @@ object PartestUtil {
srcPath = path
opt + " " + path
}
val P = oneOf(knownUnaryOptions.map(x => token(x))) | SrcPath | TestPathParser | Grep

val ScalacOptsParser = (token("-Dpartest.scalac_opts=") ~ token(NotSpace)) map { case opt ~ v => opt + v }

val P = oneOf(knownUnaryOptions.map(x => token(x))) | SrcPath | TestPathParser | Grep | ScalacOptsParser
(Space ~> repsep(P, oneOrMore(Space))).map(_.mkString(" ")).?.map(_.getOrElse("")) <~ OptSpace
}
}

0 comments on commit c670662

Please sign in to comment.