Skip to content

Commit ec47263

Browse files
committed
support ee build
1 parent 8beed5f commit ec47263

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ def python_build_watch(args):
11381138

11391139
class GraalpythonCAPIBuildTask(mx.ProjectBuildTask):
11401140
def __init__(self, args, project):
1141-
jobs = 1 # no point in using more than 1 job
1141+
jobs = min(mx.cpu_count(), 8)
11421142
super(GraalpythonCAPIBuildTask, self).__init__(args, jobs, project)
11431143

11441144
def __str__(self):
@@ -1155,17 +1155,20 @@ def build(self):
11551155
args.append("-v")
11561156
elif mx._opts.quiet:
11571157
args.append("-q")
1158-
args += ["-S", os.path.join(self.subject.dir, "setup.py"), self.subject.get_output_root()]
1158+
args += ["-S", os.path.join(self.src_dir(), "setup.py"), self.subject.get_output_root()]
11591159
mx.ensure_dir_exists(cwd)
11601160
home = os.path.join(SUITE.dir, "graalpython")
11611161
rc = self.run(args, env=env, cwd=cwd)
11621162
shutil.rmtree(cwd) # remove the temporary build files
11631163
return min(rc, 1)
11641164

1165+
def src_dir(self):
1166+
return self.subject.dir
1167+
11651168
def needsBuild(self, newestInput):
11661169
tsNewest = 0
11671170
newestFile = None
1168-
for root,dirs,files in os.walk(self.subject.dir):
1171+
for root,dirs,files in os.walk(self.src_dir()):
11691172
for f in files:
11701173
ts = os.path.getmtime(os.path.join(root, f))
11711174
if tsNewest < ts:

mx.graalpython/suite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@
4444
},
4545
{
4646
"name": "sulong",
47-
"version": "2e92894481917d92f170a713a9f03f99db600fe6",
47+
"version": "0532175f02d68e313bf3ee063d3988442f38e4a3",
4848
"subdir": True,
4949
"urls": [
5050
{"url": "https://github.com/oracle/graal", "kind": "git"},
5151
]
5252
},
5353
{
5454
"name": "regex",
55-
"version": "2e92894481917d92f170a713a9f03f99db600fe6",
55+
"version": "0532175f02d68e313bf3ee063d3988442f38e4a3",
5656
"subdir": True,
5757
"urls": [
5858
{"url": "https://github.com/oracle/graal", "kind": "git"},

0 commit comments

Comments
 (0)