Skip to content

Commit 2233f17

Browse files
davidhewittbazaah
authored andcommitted
fix PyPy link name for PyModule_FromDefAndSpec2
1 parent d9f3409 commit 2233f17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyo3-ffi/src/modsupport.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ extern "C" {
9191
fn PyModule_Create2TraceRefs(module: *mut PyModuleDef, apiver: c_int) -> *mut PyObject;
9292

9393
#[cfg(not(py_sys_config = "Py_TRACE_REFS"))]
94+
#[cfg_attr(PyPy, link_name = "PyPyModule_FromDefAndSpec2")]
9495
pub fn PyModule_FromDefAndSpec2(
9596
def: *mut PyModuleDef,
9697
spec: *mut PyObject,

0 commit comments

Comments
 (0)