enso/project/LauncherShimsForTest.scala

21 lines
485 B
Scala
Raw Normal View History

2020-09-09 16:37:26 +03:00
import sbt.Keys._
import sbt._
object LauncherShimsForTest {
/** Creates a task that compiles the launcher shims which are used for some of
2020-09-09 16:37:26 +03:00
* the launcher tests.
*
* @param rustcVersion Rust version that should be used
*/
def prepare(rustcVersion: String): Def.Initialize[Task[Unit]] =
Def.task {
val log = state.value.log
Cargo.run(
"build -p launcher-shims",
rustVersion = rustcVersion,
log = log
)
}
}