We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc031c9 commit 16e99deCopy full SHA for 16e99de
misc/perf_compare.py
@@ -42,6 +42,8 @@ def build_mypy(target_dir: str, multi_file: bool, *, cflags: str | None = None)
42
env["PYTHONHASHSEED"] = "1"
43
if multi_file:
44
env["MYPYC_MULTI_FILE"] = "1"
45
+ if cflags is not None:
46
+ env["CFLAGS"] = cflags
47
cmd = [sys.executable, "setup.py", "--use-mypyc", "build_ext", "--inplace"]
48
subprocess.run(cmd, env=env, check=True, cwd=target_dir)
49
0 commit comments