forked from TiarkRompf/virtualization-lms-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
64 lines (40 loc) · 1.69 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name := "macro-LMS"
version := "1.0.0-wip-macro"
isSnapshot := true //allows to overwrites old local published version
organization := "EPFL"
scalaVersion := "2.11.2"
scalaSource in Compile <<= baseDirectory(_ / "src")
scalaSource in Test <<= baseDirectory(_ / "test-src")
libraryDependencies += "org.scala-lang" % "scala-library" % scalaVersion.value % "compile"
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value % "compile"
libraryDependencies ++= Seq(
"org.scala-lang.virtualized" %% "scala-virtualized" % "1.0.0-macrovirt"
)
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "2.2.0" % "test"
)
// tests are not thread safe
parallelExecution in Test := false
// disable publishing of main docs
publishArtifact in (Compile, packageDoc) := false
publishArtifact in (Test, packageBin) := true
// continuations
val contVersion = "1.0.2"
autoCompilerPlugins := true
libraryDependencies ++= Seq(
"org.scala-lang.plugins" %% "scala-continuations-library" % contVersion % "compile"
)
libraryDependencies <<= (scalaVersion, libraryDependencies) { (ver, deps) =>
deps :+ compilerPlugin("org.scala-lang.plugins" % "scala-continuations-plugin" % contVersion cross CrossVersion.full)
}
//fork := true
//connectInput := true
//outputStrategy := Some(StdoutOutput)
scalacOptions += "-P:continuations:enable"
val paradiseVersion = "2.0.1"
libraryDependencies ++= (
if (scalaVersion.value.startsWith("2.10")) List("org.scalamacros" %% "quasiquotes" % paradiseVersion)
else Nil
)
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value % "compile"
addCompilerPlugin("org.scalamacros" % "paradise" % paradiseVersion cross CrossVersion.full)