Skip to content

Commit 9aa1309

Browse files
committed
build managed C api if managed is available
1 parent 03258c2 commit 9aa1309

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,11 @@ def build(self):
11801180
mx.ensure_dir_exists(cwd)
11811181
rc = self.run(args, cwd=cwd)
11821182
shutil.rmtree(cwd) # remove the temporary build files
1183+
# TODO: GR-18535
1184+
if mx.suite("sulong-managed", fatalIfMissing=False):
1185+
mx.ensure_dir_exists(cwd)
1186+
rc = self.run(["--llvm.managed"] + args, cwd=cwd)
1187+
shutil.rmtree(cwd) # remove the temporary build files
11831188
return min(rc, 1)
11841189

11851190
def src_dir(self):

0 commit comments

Comments
 (0)