enso/project/LauncherShimsForTest.scala
Ara Adkins 746521f8b2
Bump SBT and Scalafmt (#1203)
Co-authored-by: Radosław Waśko <radoslaw.wasko@enso.org>
Co-authored-by: Dmitry Bushev <bushevdv@gmail.com>
2020-10-22 16:12:28 +02:00

21 lines
485 B
Scala

import sbt.Keys._
import sbt._
object LauncherShimsForTest {
/** Creates a task that compiles the launcher shims which are used for some of
* 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
)
}
}