Skip to content

Commit

Permalink
Add polyglot.jar only if truffle-runtime-svm is there as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jerboaa committed Oct 18, 2023
1 parent 261dd42 commit 0c518c7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,9 @@ private List<Path> createTruffleBuilderModulePath() {
jars.addAll(getJars(libTruffleDir, "truffle-compiler"));
Path builderPath = rootDir.resolve(Paths.get("lib", "truffle", "builder"));
if (Files.exists(builderPath)) {
jars.addAll(getJars(builderPath, "truffle-runtime-svm", "truffle-enterprise-svm"));
if (libJvmciDir != null) {
List<Path> truffleRuntimeSVMJars = getJars(builderPath, "truffle-runtime-svm", "truffle-enterprise-svm");
jars.addAll(truffleRuntimeSVMJars);
if (libJvmciDir != null && !truffleRuntimeSVMJars.isEmpty()) {
// truffle-runtime-svm depends on polyglot, which is not part of non-jlinked
// JDKs
jars.addAll(getJars(libJvmciDir, "polyglot"));
Expand Down

0 comments on commit 0c518c7

Please sign in to comment.