Skip to content

Commit 1e5dcba

Browse files
committed
Fix micronaut benchmarking with builder on module-path
1 parent 2340287 commit 1e5dcba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

java-benchmarks/mx.java-benchmarks/mx_java_benchmarks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,11 @@ def build_assertions(self, benchmark, is_gate):
460460
# This method overrides NativeImageMixin.build_assertions
461461
return [] # We are skipping build assertions due to some failed asserts while building Micronaut apps.
462462

463+
def extra_image_build_argument(self, benchmark, args):
464+
return [
465+
'--add-exports=org.graalvm.nativeimage.builder/com.oracle.svm.core.jdk=ALL-UNNAMED',
466+
] + super(BaseMicronautBenchmarkSuite, self).extra_image_build_argument(benchmark, args)
467+
463468
def default_stages(self):
464469
return ['instrument-image', 'instrument-run', 'image', 'run']
465470

0 commit comments

Comments
 (0)