pypy: support PyPy 7.3.4

This commit is contained in:
David Hewitt 2021-04-18 08:17:20 +01:00
parent b9d076a45a
commit d0f1600571
1 changed files with 8 additions and 0 deletions

View File

@ -758,6 +758,14 @@ fn configure(interpreter_config: &InterpreterConfig) -> Result<()> {
if let Some(libdir) = &interpreter_config.libdir { if let Some(libdir) = &interpreter_config.libdir {
println!("cargo:rustc-link-search=native={}", libdir); println!("cargo:rustc-link-search=native={}", libdir);
} }
if interpreter_config.implementation == PythonInterpreterKind::PyPy {
// PyPy 3.7 changed LIBDIR to point to base_prefix/lib, so need to hard-code /bin
// search path too: https://foss.heptapod.net/pypy/pypy/-/issues/3442
println!(
"cargo:rustc-link-search=native={}/bin",
interpreter_config.base_prefix
);
}
} }
_ => {} _ => {}
} }