Skip to content

Commit d388830

Browse files
authored
Merge pull request #123 from danicheg/scala-2.13.14
Build scalac-profiling against Scala 2.13.14
2 parents f105494 + 50d1bf4 commit d388830

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

build.sbt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,18 @@ lazy val root = project
2626

2727
val bin212 = Seq("2.12.19", "2.12.18", "2.12.17", "2.12.16", "2.12.15", "2.12.14", "2.12.13")
2828
val bin213 =
29-
Seq("2.13.13", "2.13.12", "2.13.11", "2.13.10", "2.13.9", "2.13.8", "2.13.7", "2.13.6", "2.13.5")
29+
Seq(
30+
"2.13.14",
31+
"2.13.13",
32+
"2.13.12",
33+
"2.13.11",
34+
"2.13.10",
35+
"2.13.9",
36+
"2.13.8",
37+
"2.13.7",
38+
"2.13.6",
39+
"2.13.5"
40+
)
3041

3142
// Copied from
3243
// https://github.com/scalameta/scalameta/blob/370e304b0d10db1dd65fc79a5abc1f39004aeffd/build.sbt#L724-L737
@@ -37,7 +48,7 @@ lazy val fullCrossVersionSettings = Seq(
3748
// NOTE: SBT 1.x provides cross-version support for Scala sources
3849
// (https://www.scala-sbt.org/1.x/docs/Cross-Build.html#Scala-version+specific+source+directory).
3950
// Unfortunately, it only includes directories like "scala_2.12" or "scala_2.13",
40-
// not "scala_2.12.19" or "scala_2.13.13" that we need.
51+
// not "scala_2.12.19" or "scala_2.13.14" that we need.
4152
// That's why we have to work around here.
4253
val base = (Compile / sourceDirectory).value
4354
val versionDir = scalaVersion.value.replaceAll("-.*", "")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package ch.epfl.scala.profilers.tools
2+
3+
import scala.tools.nsc.Global
4+
5+
object SettingsOps {
6+
def areStatisticsEnabled(g: Global): Boolean =
7+
g.settings.areStatisticsEnabled
8+
}

0 commit comments

Comments
 (0)