2626PYTHON_EXECUTOR_CASES_C_H = CPYTHON / "Python" / "executor_cases.c.h"
2727TOOLS_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
3935class _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