MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / get_rustc_link_lib

Function get_rustc_link_lib

python3-sys/build.rs:201–211  ·  view source on GitHub ↗
(
    _: &PythonVersion,
    ld_version: &str,
    enable_shared: bool,
)

Source from the content-addressed store, hash-verified

199#[cfg(not(target_os = "windows"))]
200#[allow(clippy::unnecessary_wraps)]
201fn 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")]
214fn get_macos_linkmodel(expected_version: &PythonVersion) -> Result<String, String> {

Callers

nothing calls this directly

Calls 1

get_macos_linkmodelFunction · 0.70

Tested by

no test coverage detected