Skip to content

Commit 48dbbcb

Browse files
committed
Fix mx hellomodule GraalVMConfig
1 parent b4acd92 commit 48dbbcb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

substratevm/mx.substratevm/mx_substratevm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,8 @@ def hellomodule(args):
10841084
proj_dir = join(suite.dir, 'src', 'native-image-module-tests', 'hello.app')
10851085
mx.run_maven(['-e', 'install'], cwd=proj_dir)
10861086
module_path.append(join(proj_dir, 'target', 'hello-app-1.0-SNAPSHOT.jar'))
1087-
with native_image_context(hosted_assertions=False, native_images=['native-image']) as native_image:
1087+
config = GraalVMConfig.build(native_images=['native-image'])
1088+
with native_image_context(hosted_assertions=False, config=config) as native_image:
10881089
build_dir = join(svmbuild_dir(), 'hellomodule')
10891090
# Build module into native image
10901091
mx.log('Building image from java modules: ' + str(module_path))

0 commit comments

Comments
 (0)