Skip to content

Commit b152fd6

Browse files
authored
Merge pull request #1359 from dalcde/patch-2
Let pyconfig.h not define Py_ENABLE_SHARED
2 parents d9452b3 + 8f404c4 commit b152fd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ fn load_cross_compile_from_headers(
488488
let interpreter_config = InterpreterConfig {
489489
version: python_version,
490490
libdir: cross_compile_config.lib_dir.to_str().map(String::from),
491-
shared: config_data.get_bool("Py_ENABLE_SHARED")?,
491+
shared: config_data.get_bool("Py_ENABLE_SHARED").unwrap_or(false),
492492
ld_version: format!("{}.{}", major, minor),
493493
base_prefix: "".to_string(),
494494
executable: PathBuf::new(),

0 commit comments

Comments
 (0)