Skip to content

Commit

Permalink
[JDK 22/23] Fix installation/copy of svm-foreign.jar
Browse files Browse the repository at this point in the history
  • Loading branch information
jerboaa authored and zakkak committed Feb 6, 2024
1 parent 77d917b commit 8ff5371
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,6 @@ public static void main(String... args) throws IOException
FileSystem.copy(mandrelRepo.resolve(
Path.of("sdk", "mxbuild", PLATFORM, "native-image.exe.image-bash", "native-image.export-list")), nativeImageExport);
}
logger.debugf("Copy svm-preview...");
final Path svmForeign = mandrelJavaHome.resolve(Path.of("lib", "svm-preview", "builder", "svm-foreign.jar"));
final Path svmForeignSource = PathFinder.getFirstExisting(mandrelRepo.resolve(Path.of("substratevm", "mxbuild")).toString(), "svm-foreign.jar");
FileSystem.copy(svmForeignSource, svmForeign);
}

if (!options.skipNative)
Expand Down Expand Up @@ -949,7 +945,9 @@ class Mx
new SimpleEntry<>("org.graalvm.nativeimage:svm-diagnostics-agent.jar",
new Path[]{substrateDistPath.resolve("svm-diagnostics-agent.jar"), Path.of("lib", "graalvm", "svm-diagnostics-agent.jar")}),
new SimpleEntry<>("org.graalvm.nativeimage:svm-configure.jar",
new Path[]{substrateDistPath.resolve("svm-configure.jar"), Path.of("lib", "graalvm", "svm-configure.jar")})
new Path[]{substrateDistPath.resolve("svm-configure.jar"), Path.of("lib", "graalvm", "svm-configure.jar")}),
new SimpleEntry<>("org.graalvm.nativeimage:svm-foreign.jar",
new Path[]{substrateDistPath.resolve("svm-foreign.jar"), Path.of("lib", "svm", "builder", "svm-foreign.jar")})
);

macroPaths = Map.ofEntries(
Expand Down

0 comments on commit 8ff5371

Please sign in to comment.