aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2018-03-19 16:21:46 +0100
committerGitHub <noreply@github.com>2018-03-19 16:21:46 +0100
commite711bb0170f0939f9054cea76da0ce09005ccef3 (patch)
tree67e50ff39cf4414b581ca4a3182d4006c7960ae9
parentf1504857a91e89d17fd4c4801d7be3580bf60e28 (diff)
parent6fa1bea98093608388fe614fe459ba7e05d42d10 (diff)
downloadKamon-e711bb0170f0939f9054cea76da0ce09005ccef3.tar.gz
Kamon-e711bb0170f0939f9054cea76da0ce09005ccef3.tar.bz2
Kamon-e711bb0170f0939f9054cea76da0ce09005ccef3.zip
Merge pull request #521 from kamon-io/optimizer-params
* Introduce some scalac params in order to improve the emited bytecode
-rw-r--r--build.sbt19
1 files changed, 16 insertions, 3 deletions
diff --git a/build.sbt b/build.sbt
index 51a5a764..5c2cc104 100644
--- a/build.sbt
+++ b/build.sbt
@@ -20,11 +20,24 @@ lazy val kamon = (project in file("."))
.aggregate(core, testkit, coreTests)
val commonSettings = Seq(
- scalaVersion := "2.11.8",
+ scalaVersion := "2.12.4",
javacOptions += "-XDignore.symbol.file",
resolvers += Resolver.mavenLocal,
- crossScalaVersions := Seq("2.12.2", "2.11.8", "2.10.6"),
- concurrentRestrictions in Global += Tags.limit(Tags.Test, 1)
+ crossScalaVersions := Seq("2.12.4", "2.11.8", "2.10.6"),
+ concurrentRestrictions in Global += Tags.limit(Tags.Test, 1),
+ scalacOptions ++= Seq(
+ "-deprecation",
+ "-encoding", "UTF-8",
+ "-feature",
+ "-Xfuture",
+ "-language:implicitConversions", "-language:higherKinds", "-language:existentials", "-language:postfixOps",
+ "-unchecked"
+ ) ++ (CrossVersion.partialVersion(scalaVersion.value) match {
+ case Some((2,10)) => Seq("-Yno-generic-signatures", "-target:jvm-1.7")
+ case Some((2,11)) => Seq("-Ybackend:GenBCode","-Ydelambdafy:method","-target:jvm-1.8")
+ case Some((2,12)) => Seq("-opt:l:method")
+ case _ => Seq.empty
+ })
)
lazy val core = (project in file("kamon-core"))