diff --git a/core/src/main/scala/ammrunner/Command.scala b/core/src/main/scala/ammrunner/Command.scala index 5dc21f0..62df77f 100644 --- a/core/src/main/scala/ammrunner/Command.scala +++ b/core/src/main/scala/ammrunner/Command.scala @@ -81,8 +81,8 @@ object Command { private object Graalvm { - import com.oracle.svm.core.headers.Errno - import com.oracle.svm.core.posix.headers.Unistd + import com.oracle.svm.core.headers.LibC + import com.oracle.svm.core.posix.headers.{Errno, Unistd} import org.graalvm.nativeimage.c.`type`.CTypeConversion def execv(argc: String, argv: Seq[String]): Unit = { @@ -94,7 +94,7 @@ object Command { val argv0 = CTypeConversion.toCStrings(argv.toArray) Unistd.execv(argc0.get(), argv0.get()) - val err = Errno.errno() + val err = LibC.errno() val desc = CTypeConversion.toJavaString(Errno.strerror(err)) throw new Exception(s"Error running $argc ${argv.mkString(" ")}: $desc") } diff --git a/project/Deps.scala b/project/Deps.scala index daa0a30..213fce3 100644 --- a/project/Deps.scala +++ b/project/Deps.scala @@ -10,7 +10,7 @@ object Deps { def coursierLauncher = "io.get-coursier" %% "coursier-launcher" % "2.0.16" def dataClass = "io.github.alexarchambault" %% "data-class" % "0.2.6" def macroParadise = "org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full - def svm = "org.graalvm.nativeimage" % "svm" % "19.3.6" + def svm = "org.graalvm.nativeimage" % "svm" % "22.2.0" def utest = setting { val sv = scalaVersion.value val ver =