【发布时间】:2012-09-27 16:43:01
【问题描述】:
我正在使用 SBT 为 Scala 2.8、2.9 和(希望)2.10 交叉构建的项目。我想在仅使用 2.10 编译时添加 -feature 选项。
也就是说,当我使用小于 2.10.0 的版本进行编译时,我想将编译器选项设置为:
scalacOptions ++= Seq( "-deprecation", "-unchecked" )
当使用大于或等于 2.10.0 的版本进行编译时:
scalacOptions ++= Seq( "-deprecation", "-unchecked", "-feature" )
有没有办法做到这一点?
【问题讨论】:
-
看看scalaz build
标签: scala sbt scala-2.10