Skip to content

Commit 818a8fd

Browse files
committed
Ignore truffle-svm macro if used on class-path only builds.
1 parent 892f331 commit 818a8fd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
ImageModulePath = ${.}/../../../truffle/builder/truffle-runtime-svm.jar
22
Args = -H:CLibraryPath=${.}/../../../truffle/builder
3+
IgnoreIfBuilderOnClasspath = true

substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/MacroOptionHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private void applyEnabled(MacroOption.EnabledOption enabledOption, String argume
7979
}
8080

8181
BuildConfiguration config = nativeImage.config;
82-
boolean ignoreIfBuilderOnClasspath = Boolean.getBoolean(enabledOption.getProperty(config, "IgnoreIfBuilderOnClasspath"));
82+
boolean ignoreIfBuilderOnClasspath = Boolean.parseBoolean(enabledOption.getProperty(config, "IgnoreIfBuilderOnClasspath"));
8383
if (ignoreIfBuilderOnClasspath && !config.modulePathBuild) {
8484
return;
8585
}

0 commit comments

Comments
 (0)