File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
modules/build/src/main/java/scala/build/internal Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import java .io .FileNotFoundException ;
4
4
5
- import com .oracle .svm .core .CErrorNumber ;
6
5
import com .oracle .svm .core .annotate .Substitute ;
7
6
import com .oracle .svm .core .annotate .TargetClass ;
7
+ import com .oracle .svm .core .headers .LibC ;
8
8
import coursier .jvm .ErrnoException ;
9
9
import coursier .jvm .GraalvmErrnoExtras ;
10
10
import org .graalvm .nativeimage .c .type .CTypeConversion ;
@@ -26,7 +26,7 @@ public static void chdir(String path) throws ErrnoException {
26
26
int ret = GraalvmUnistdExtras .chdir (path0 .get ());
27
27
28
28
if (ret != 0 ) {
29
- int n = CErrorNumber . getCErrorNumber ();
29
+ int n = LibC . errno ();
30
30
Throwable cause = null ;
31
31
if (n == GraalvmErrnoExtras .ENOENT () || n == GraalvmErrnoExtras .ENOTDIR ())
32
32
cause = new FileNotFoundException (path );
Original file line number Diff line number Diff line change @@ -106,12 +106,8 @@ object Deps {
106
106
val metaconfigTypesafe = ivy " com.geirsson::metaconfig-typesafe-config:0.9.15 "
107
107
}
108
108
109
- private def graalVmVersion =
110
- if (Properties .isWin) " 21.2.0"
111
- else " 21.3.0"
112
- def graalVmJvmId =
113
- if (Properties .isWin) s " graalvm-java16: $graalVmVersion"
114
- else s " graalvm-java17: $graalVmVersion"
109
+ private def graalVmVersion = " 22.0.0"
110
+ def graalVmJvmId = s " graalvm-java17: $graalVmVersion"
115
111
116
112
def csDockerVersion = Deps .Versions .coursier
117
113
You can’t perform that action at this time.
0 commit comments