Skip to content

Commit 83aa8e9

Browse files
committed
[GR-32495] Fix mx -d lli ... command.
PullRequest: graal/9296
2 parents cb9f097 + 175b383 commit 83aa8e9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

sulong/mx.sulong/mx_sulong.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,19 +235,12 @@ def runLLVM(args=None, out=None, err=None, timeout=None, nonZeroIsFatal=True, ge
235235
return mx.run_java(getCommonOptions(False) + vmArgs + get_classpath_options(dists) + ["com.oracle.truffle.llvm.launcher.LLVMLauncher"] + sulongArgs, timeout=timeout, nonZeroIsFatal=nonZeroIsFatal, out=out, err=err)
236236

237237

238-
def _java_to_graalvm_arg(arg):
239-
prefix = '-X'
240-
if arg.startswith(prefix):
241-
return '--vm.' + arg[1:]
242-
return arg
243-
244-
245238
@mx.command(_suite.name, "lli")
246239
def lli(args=None, out=None):
247240
"""run lli via the current GraalVM"""
248241
debug_args = mx.java_debug_args()
249242
if debug_args and not mx.is_debug_disabled():
250-
args = [_java_to_graalvm_arg(d) for d in debug_args] + args
243+
args = ['--vm.' + arg.lstrip('-') for arg in debug_args] + args
251244
# on Windows <GRAALVM_HOME>/bin/lli is always a .cmd file because it is a "fake symlink"
252245
mx.run([os.path.join(mx_sdk_vm_impl.graalvm_home(fatalIfMissing=True), 'bin', mx_subst.path_substitutions.substitute('<cmd:lli>'))] + args, out=out)
253246

0 commit comments

Comments
 (0)