forked from TiarkRompf/virtualization-lms-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
49 lines (27 loc) · 1.15 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name := "LMS"
version := "0.3-SNAPSHOT"
organization := "EPFL"
resolvers += ScalaToolsSnapshots
//resolvers += dropboxScalaTestRepo
resolvers += prereleaseScalaTest
//scalaHome := Some(file("/Users/tiark/scala/build/pack"))
scalaOrganization := "org.scala-lang.virtualized"
//scalaBinaryVersion := virtScala // necessary??
scalaVersion := virtScala
scalaSource in Compile <<= baseDirectory(_ / "src")
scalaSource in Test <<= baseDirectory(_ / "test-src")
scalacOptions += "-Yvirtualize"
//scalacOptions += "-Yvirtpatmat"
//scalacOptions in Compile ++= Seq(/*Unchecked, */Deprecation)
// needed for scala.tools, which is apparently not included in sbt's built in version
libraryDependencies += "org.scala-lang" % "scala-library" % virtScala
libraryDependencies += "org.scala-lang" % "scala-compiler" % virtScala
libraryDependencies += scalaTest
// tests are not thread safe
parallelExecution in Test := false
// disable publishing of main docs
publishArtifact in (Compile, packageDoc) := false
// continuations
autoCompilerPlugins := true
addCompilerPlugin("org.scala-lang.plugins" % "continuations" % virtScala)
scalacOptions += "-P:continuations:enable"