Skip to content

Commit ef88dd4

Browse files
Allow users to add options first
Useful if they want to pass '-J-Dfoo=bar' to Scala CLI for example
1 parent 2f98c53 commit ef88dd4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ScalaCliCompile.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ trait ScalaCliCompile extends ScalaModule {
8787

8888
def compileScalaCli: Option[os.Path] = compileScalaCliImpl
8989

90+
def extraScalaCliHeadOptions: T[List[String]] =
91+
T {
92+
List.empty[String]
93+
}
94+
9095
def extraScalaCliOptions: T[List[String]] =
9196
T {
9297
List.empty[String]
@@ -113,6 +118,7 @@ trait ScalaCliCompile extends ScalaModule {
113118

114119
val proc = os.proc(
115120
cli,
121+
extraScalaCliHeadOptions(),
116122
Seq("compile", "--classpath"),
117123
Seq("-S", scalaVersion()),
118124
asOpt("-O", scalacOptions()),

0 commit comments

Comments
 (0)