diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2018-03-19 16:21:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-19 16:21:46 +0100 |
commit | e711bb0170f0939f9054cea76da0ce09005ccef3 (patch) | |
tree | 67e50ff39cf4414b581ca4a3182d4006c7960ae9 | |
parent | f1504857a91e89d17fd4c4801d7be3580bf60e28 (diff) | |
parent | 6fa1bea98093608388fe614fe459ba7e05d42d10 (diff) | |
download | Kamon-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.sbt | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -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")) |