Skip to content

Commit 1e1aa99

Browse files
committed
Add build arg -Ob on libpythonvm library build
1 parent ac57bbc commit 1e1aa99

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
@@ -254,6 +254,9 @@ def libpythonvm_build_args():
254254
build_args = []
255255
build_args += bytecode_dsl_build_args()
256256

257+
if os.environ.get("GITHUB_CI"):
258+
build_args += ["-Ob"]
259+
257260
if graalos := ("musl" in mx_subst.path_substitutions.substitute("<multitarget_libc_selection>")):
258261
build_args += ['-H:+GraalOS']
259262
else:
@@ -326,7 +329,9 @@ def libpythonvm_build_args():
326329
"-H:-UnlockExperimentalVMOptions",
327330
]
328331
else:
332+
print("[DEBUG] libpythonvm_build_args debug")
329333
print(invert("Not using an automatically selected PGO profile"), file=sys.stderr)
334+
print(f"[DEBUG] libpythonvm args: {build_args}")
330335
return build_args
331336

332337

0 commit comments

Comments
 (0)