File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
graal-nodejs/mx.graal-nodejs Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -574,6 +574,9 @@ def _prepare_svm_env():
574574def mx_post_parse_cmd_line (args ):
575575 mx_graal_nodejs_benchmark .register_nodejs_vms ()
576576
577+ def _is_wasm_available ():
578+ return ('wasm' , True ) in mx .get_dynamic_imports ()
579+
577580mx_sdk .register_graalvm_component (mx_sdk .GraalVmLanguage (
578581 suite = _suite ,
579582 name = 'Graal.nodejs' ,
@@ -604,6 +607,7 @@ def mx_post_parse_cmd_line(args):
604607 '--tool:all' ,
605608 '--language:nodejs' ,
606609 '-Dgraalvm.libpolyglot=true' , # `lib:graal-nodejs` should be initialized like `lib:polyglot` (GR-10038)
610+ * (['--language:wasm' ] if _is_wasm_available () else []),
607611 ],
608612 build_args_enterprise = [
609613 '-H:+AuxiliaryEngineCache' ,
@@ -618,6 +622,7 @@ def mx_post_parse_cmd_line(args):
618622 standalone_dependencies = {
619623 'GraalVM license files' : ('' , ['GRAALVM-README.md' ]),
620624 'Graal.nodejs license files' : ('' , []),
625+ ** ({'GraalWasm' : ('' , ['LICENSE_WASM.txt' ])} if _is_wasm_available () else {}),
621626 },
622627 standalone_dependencies_enterprise = {
623628 'GraalVM enterprise license files' : ('' , ['GRAALVM-README.md' ]),
You can’t perform that action at this time.
0 commit comments