Skip to content

Commit

Permalink
Fix include directory when cross compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshilliard committed Jun 24, 2023
1 parent 562b2d9 commit e411697
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rust/cryptography-cffi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ fn main() {
)
.unwrap();
println!("cargo:rustc-cfg=python_implementation=\"{}\"", python_impl);
// Use headers path when available for handling _PYTHON_BUILD == True sysconfig.
let python_include = run_python_script(
&python,
"import sysconfig; print(sysconfig.get_path('include'), end='')",
"import sysconfig; print(sysconfig.get_paths().get('headers', sysconfig.get_path('include')), end='')",
)
.unwrap();
let openssl_include =
Expand Down

0 comments on commit e411697

Please sign in to comment.