21
21
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
22
22
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
23
23
# OF THE POSSIBILITY OF SUCH DAMAGE.
24
- from argparse import ArgumentParser
25
24
import os
26
25
import platform
27
26
import re
28
27
import shutil
29
28
import subprocess
30
29
import sys
31
30
import tempfile
31
+ from argparse import ArgumentParser
32
32
33
33
import mx
34
34
import mx_benchmark
35
35
import mx_gate
36
36
import mx_sdk
37
37
import mx_subst
38
38
import mx_urlrewrites
39
- from mx_downstream import testdownstream
40
39
from mx_gate import Task
41
40
from mx_graalpython_benchmark import PythonBenchmarkSuite
42
41
from mx_unittest import unittest
@@ -57,10 +56,12 @@ def _get_stdlib_home():
57
56
def _get_svm_binary ():
58
57
return os .path .join (_suite .dir , "graalpython-svm" )
59
58
59
+
60
60
def __get_svm_binary_from_graalvm ():
61
61
vmdir = os .path .join (mx .suite ("truffle" ).dir , ".." , "vm" )
62
62
return os .path .join (vmdir , "mxbuild" , "-" .join ([mx .get_os (), mx .get_arch ()]), "graalpython.image" , "graalpython" )
63
63
64
+
64
65
def _extract_graalpython_internal_options (args ):
65
66
internal = []
66
67
non_internal = []
@@ -148,6 +149,10 @@ def _extract_graalpython_internal_options(args):
148
149
# internal += ['-Dgraal.MaximumLoopExplosionCount=1000']
149
150
# internal += ['-Dgraal.TruffleCompilationThreshold=100000']
150
151
152
+ elif arg == '-compile-truffle-immediately' and _mx_graal :
153
+ internal += ['-Dgraal.TruffleCompileImmediately=true' ]
154
+ internal += ['-Dgraal.TruffleCompilationExceptionsAreThrown=true' ]
155
+
151
156
else :
152
157
non_internal += [arg ]
153
158
@@ -857,6 +862,7 @@ def import_python_sources(args):
857
862
_suite .vc .update (_suite .dir , rev = tip )
858
863
_suite .vc .git_command (_suite .dir , ["merge" , "python-import" ])
859
864
865
+
860
866
# ----------------------------------------------------------------------------------------------------------------------
861
867
#
862
868
# add the defined python benchmark suites
0 commit comments