Skip to content

Commit a55268e

Browse files
fix up merge
1 parent 4f493cd commit a55268e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Tools/jit/_targets.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,11 @@
2626
PYTHON_EXECUTOR_CASES_C_H = CPYTHON / "Python" / "executor_cases.c.h"
2727
TOOLS_JIT_TEMPLATE_C = TOOLS_JIT / "template.c"
2828

29-
ASYNCIO_RUNNER=asyncio.Runner()
30-
31-
3229
_S = typing.TypeVar("_S", _schema.COFFSection, _schema.ELFSection, _schema.MachOSection)
3330
_R = typing.TypeVar(
3431
"_R", _schema.COFFRelocation, _schema.ELFRelocation, _schema.MachORelocation
3532
)
3633

37-
3834
@dataclasses.dataclass
3935
class _Target(typing.Generic[_S, _R]):
4036
triple: str
@@ -209,7 +205,7 @@ async def _build_stencils(self) -> dict[str, _stencils.StencilGroup]:
209205
return {task.get_name(): task.result() for task in tasks}
210206

211207
def build(
212-
self, out: pathlib.Path, *, comment: str = "", force: bool = False
208+
self, out: pathlib.Path, *, comment: str = "", force: bool = False, stencils_h: str = "jit_stencils.h"
213209
) -> None:
214210
"""Build jit_stencils.h in the given directory."""
215211
if not self.stable:
@@ -218,7 +214,7 @@ def build(
218214
outline = "=" * len(warning)
219215
print("\n".join(["", outline, warning, request, outline, ""]))
220216
digest = f"// {self._compute_digest(out)}\n"
221-
jit_stencils = out / "jit_stencils.h"
217+
jit_stencils = out / stencils_h
222218
if (
223219
not force
224220
and jit_stencils.exists()

0 commit comments

Comments
 (0)