Skip to content

Commit b8be907

Browse files
committed
Port #389 to Python
1 parent c4a0ed9 commit b8be907

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: bench_runner/scripts/workflow.py

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import contextlib
66
import os
77
from pathlib import Path
8+
import shlex
89
import shutil
910
import subprocess
1011
import sys
@@ -164,6 +165,8 @@ def compile_unix(cpython: PathLike, flags: list[str], pgo: bool, pystats: bool)
164165
if "CLANG" in flags:
165166
args.append("--with-tail-call-interp")
166167
args.append("--enable-option-checking=fatal")
168+
if configure_flags := os.environ.get("PYTHON_CONFIGURE_FLAGS"):
169+
args.extend(shlex.split(configure_flags))
167170

168171
with contextlib.chdir(cpython):
169172
subprocess.check_call(["./configure", *args], env=env)

0 commit comments

Comments
 (0)