Skip to content

Commit 67f8b23

Browse files
authored
Enable building on Scala 2.11 (#119)
1 parent 8527ee2 commit 67f8b23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import scala.sys.process._
22

3-
val scalaVersions = Seq("3.1.3", "2.13.8", "2.12.16")
3+
val scalaVersions = Seq("3.1.3", "2.13.8", "2.12.16", "2.11.12")
44
val macrosParadiseVersion = "2.1.1"
55

66
ThisBuild / versionScheme := Some("semver-spec")

core/src/main/scala/com/github/sbt/jni/syntax/NativeLoader.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ object NativeLoader {
1616
val plat: String = {
1717
val line =
1818
try {
19-
scala.sys.process.Process("uname -sm").!!.linesIterator.next()
19+
scala.io.Source.fromString(scala.sys.process.Process("uname -sm").!!).getLines().next()
2020
} catch {
2121
case _: Exception => sys.error("Error running `uname` command")
2222
}

0 commit comments

Comments
 (0)