File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
modules/options/src/main/scala/scala/build/options Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,19 @@ final case class BuildOptions(
56
56
value(scalaParams) match {
57
57
case Some (scalaParams0) =>
58
58
val platform0 = platform.value match {
59
- case Platform .JVM => " JVM"
60
- case Platform .JS => " Scala.js"
61
- case Platform .Native => " Scala Native"
59
+ case Platform .JVM =>
60
+ val jvmIdSuffix =
61
+ javaOptions.jvmIdOpt
62
+ .orElse(Some (javaHome().value.version.toString))
63
+ .map(" (" + _ + " )" ).getOrElse(" " )
64
+ s " JVM $jvmIdSuffix"
65
+ case Platform .JS =>
66
+ val scalaJsVersion = scalaJsOptions.version.getOrElse(Constants .scalaJsVersion)
67
+ s " Scala.js $scalaJsVersion"
68
+ case Platform .Native =>
69
+ val scalaNativeVersion =
70
+ scalaNativeOptions.version.getOrElse(Constants .scalaNativeVersion)
71
+ s " Scala Native $scalaNativeVersion"
62
72
}
63
73
Seq (s " Scala ${scalaParams0.scalaVersion}" , platform0)
64
74
case None =>
You can’t perform that action at this time.
0 commit comments