Skip to content

Commit 9697e87

Browse files
committed
fix missing lazy-related symbols
1 parent 122e42e commit 9697e87

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Include/internal/pycore_import.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ extern PyObject *
3636
_PyImport_ResolveName(PyThreadState *tstate, PyObject *name, PyObject *globals, int level);
3737
extern PyObject *
3838
_PyImport_GetAbsName(PyThreadState *tstate, PyObject *name, PyObject *globals, int level);
39-
extern PyObject *
39+
// Symbol is exported for the JIT
40+
PyAPI_FUNC(PyObject *)
4041
_PyImport_LoadLazyImportTstate(PyThreadState *tstate, PyObject *lazy_import);
4142
extern PyObject *
4243
_PyImport_LazyImportModuleLevelObject(PyThreadState *tstate, PyObject *name, PyObject *builtins, PyObject *globals,

Python/jit.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
#include "pycore_floatobject.h"
1212
#include "pycore_frame.h"
1313
#include "pycore_function.h"
14+
#include "pycore_import.h"
1415
#include "pycore_interpframe.h"
1516
#include "pycore_interpolation.h"
1617
#include "pycore_intrinsics.h"
18+
#include "pycore_lazyimportobject.h"
1719
#include "pycore_list.h"
1820
#include "pycore_long.h"
1921
#include "pycore_opcode_metadata.h"

0 commit comments

Comments
 (0)