Skip to content

Commit

Permalink
Explicitly build graal-sdk and add nativeimage, word and collections
Browse files Browse the repository at this point in the history
New packages introduced in oracle/graal#7171
  • Loading branch information
zakkak committed Aug 17, 2023
1 parent 8724123 commit cd29ec1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build.java
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ class Mx
Pattern.compile("\"version\"\\s*:\\s*\"([0-9.]*)\"");

static final List<BuildArgs> BUILD_JAVA_STEPS = List.of(
BuildArgs.of("--no-native", "--dependencies", "SVM,SVM_DRIVER,SVM_AGENT,SVM_DIAGNOSTICS_AGENT")
BuildArgs.of("--no-native", "--dependencies", "GRAAL_SDK,SVM,SVM_DRIVER,SVM_AGENT,SVM_DIAGNOSTICS_AGENT")
, BuildArgs.of("--only",
build.IS_WINDOWS ?
"native-image.exe.image-bash," +
Expand Down Expand Up @@ -903,7 +903,13 @@ 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:nativeimage.jar",
new Path[]{sdkDistPath.resolve("nativeimage.jar"), Path.of("lib", "jvmci", "nativeimage.jar")}),
new SimpleEntry<>("org.graalvm.word:word.jar",
new Path[]{sdkDistPath.resolve("word.jar"), Path.of("lib", "jvmci", "word.jar")}),
new SimpleEntry<>("org.graalvm.word:collections.jar",
new Path[]{sdkDistPath.resolve("collections.jar"), Path.of("lib", "jvmci", "collections.jar")})
);

macroPaths = Map.ofEntries(
Expand Down Expand Up @@ -1168,6 +1174,8 @@ static void patchSuites(Tasks.FileReplace.Effects effects, Path mandrelRepo)
path = mandrelRepo.resolve(suitePy);
dependenciesToPatch = Map.of(
// Mandrel doesn't use polyglot
"^ +\"sdk:POLYGLOT\",", "",
"^ +\"transitive org.graalvm.polyglot\",", "",
"^ +\"org.graalvm.polyglot\",", "",
"^ +\"org.graalvm.polyglot.proxy\",", "",
"^ +\"org.graalvm.polyglot.io\",", "",
Expand Down

0 comments on commit cd29ec1

Please sign in to comment.