Merge pull request #1359 from dalcde/patch-2

Let pyconfig.h not define Py_ENABLE_SHARED
This commit is contained in:
David Hewitt 2021-01-05 22:22:50 +00:00 committed by GitHub
commit b152fd6317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ fn load_cross_compile_from_headers(
let interpreter_config = InterpreterConfig {
version: python_version,
libdir: cross_compile_config.lib_dir.to_str().map(String::from),
shared: config_data.get_bool("Py_ENABLE_SHARED")?,
shared: config_data.get_bool("Py_ENABLE_SHARED").unwrap_or(false),
ld_version: format!("{}.{}", major, minor),
base_prefix: "".to_string(),
executable: PathBuf::new(),