Skip to content

Commit 1f00cc8

Browse files
committed
Support -H and -Dnative-image.benchmark.extra-image-build-argument in the Polybench suite
1 parent 09b28bb commit 1f00cc8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/mx.sdk/mx_sdk_benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ def supported_vm_arg_prefixes():
11181118
basis. In the future we can convert this from a failure into a warning.
11191119
:return: a list of args supported by native image.
11201120
"""
1121-
return ['-D', '-Xmx', '-Xmn', '-XX:-PrintGC', '-XX:+PrintGC', '--add-opens', '--add-modules', '--add-exports',
1121+
return ['-D', '-H', '-Xmx', '-Xmn', '-XX:-PrintGC', '-XX:+PrintGC', '--add-opens', '--add-modules', '--add-exports',
11221122
'--add-reads', '--enable-native-access']
11231123

11241124
_VM_OPTS_SPACE_SEPARATED_ARG = ['-mp', '-modulepath', '-limitmods', '-addmods', '-upgrademodulepath', '-m',

truffle/mx.truffle/mx_polybench/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def default_stages(self) -> List[str]:
314314
return ["instrument-image", "instrument-run", "image", "run"]
315315

316316
def extra_image_build_argument(self, benchmark_name, args):
317-
return [
317+
return super().extra_image_build_argument(benchmark_name, args) + [
318318
"--link-at-build-time",
319319
"-H:+AssertInitializationSpecifiedForAllClasses",
320320
"-H:+GuaranteeSubstrateTypesLinked",

0 commit comments

Comments
 (0)