From 9639af34a7e251aafdf4a280432e81123d646313 Mon Sep 17 00:00:00 2001 From: Kevin Laeufer Date: Tue, 28 Jul 2020 10:56:40 -0700 Subject: build.sbt: remove -Xsource option This should not be needed in firrtl. --- build.sbt | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/build.sbt b/build.sbt index b2874ae6..cbec8224 100644 --- a/build.sbt +++ b/build.sbt @@ -2,18 +2,6 @@ enablePlugins(SiteScaladocPlugin) -def scalacOptionsVersion(scalaVersion: String): Seq[String] = { - Seq() ++ { - // If we're building with Scala > 2.11, enable the compile option - // switch to support our anonymous Bundle definitions: - // https://github.com/scala/bug/issues/10047 - CrossVersion.partialVersion(scalaVersion) match { - case Some((2, scalaMajor: Long)) if scalaMajor < 12 => Seq() - case _ => Seq("-Xsource:2.11") - } - } -} - def javacOptionsVersion(scalaVersion: String): Seq[String] = { Seq() ++ { // Scala 2.12 requires Java 8, but we continue to generate @@ -35,7 +23,7 @@ lazy val commonSettings = Seq( version := "1.4-SNAPSHOT", scalaVersion := "2.12.11", crossScalaVersions := Seq("2.13.2", "2.12.11", "2.11.12"), - scalacOptions := scalacOptionsVersion(scalaVersion.value) ++ Seq( + scalacOptions := Seq( "-deprecation", "-unchecked", "-language:reflectiveCalls", @@ -169,7 +157,7 @@ lazy val docSettings = Seq( } s"https://github.com/freechipsproject/firrtl/tree/$branch€{FILE_PATH}.scala" } - ) ++ scalacOptionsVersion(scalaVersion.value) ++ scalacDocOptionsVersion(scalaVersion.value) + ) ++ scalacDocOptionsVersion(scalaVersion.value) ) lazy val firrtl = (project in file(".")) -- cgit v1.2.3