5
我正在使用SBT的Scala 2.8,2.9和(希望)2.10的交叉构建项目。我想在仅使用2.10编译时添加-feature
选项。SBT的条件选择选项
换句话说,当我比2.10.0小的版本编译,我想设置编译器选项:
scalacOptions ++= Seq("-deprecation", "-unchecked")
与或小于2.10.0版本更大的平等编译时:
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature")
有没有办法实现这一点?
看看scalaz [建设](https://github.com /scalaz/scalaz/blob/master/project/ScalazBuild.scala#L125) – 4e6