(
_: &PythonVersion,
ld_version: &str,
enable_shared: bool,
)
| 199 | #[cfg(not(target_os = "windows"))] |
| 200 | #[allow(clippy::unnecessary_wraps)] |
| 201 | fn get_rustc_link_lib( |
| 202 | _: &PythonVersion, |
| 203 | ld_version: &str, |
| 204 | enable_shared: bool, |
| 205 | ) -> Result<String, String> { |
| 206 | if enable_shared { |
| 207 | Ok(format!("cargo:rustc-link-lib=python{}", ld_version)) |
| 208 | } else { |
| 209 | Ok(format!("cargo:rustc-link-lib=static=python{}", ld_version)) |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | #[cfg(target_os = "macos")] |
| 214 | fn get_macos_linkmodel(expected_version: &PythonVersion) -> Result<String, String> { |
nothing calls this directly
no test coverage detected