Skip to content

Commit 81b5780

Browse files
committed
FastR mx launcher: allow to disable assertions via environment variable
1 parent 6498c89 commit 81b5780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mx.fastr/mx_fastr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def do_run_r(args, command, extraVmArgs=None, jdk=None, **kwargs):
9797
vmArgs += _sulong_options()
9898
args = _sulong_args() + args
9999

100-
if extraVmArgs is None or not '-da' in extraVmArgs:
100+
if not "FASTR_NO_ASSERTS" in os.environ and (extraVmArgs is None or not '-da' in extraVmArgs):
101101
# unless explicitly disabled we enable assertion checking
102102
vmArgs += ['-ea', '-esa']
103103

0 commit comments

Comments
 (0)