We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b577429 commit f2a36b5Copy full SHA for f2a36b5
pysplashsurf/build.rs
@@ -1,11 +1,9 @@
1
fn main() {
2
+ // Required to run cargo check or stub gen outside of maturing build
3
if std::env::var_os("CARGO_CFG_TARGET_OS=macos").is_some() {
- println!(
4
- "cargo:rustc-link-arg=-Wl,-rpath,{}",
5
- pyo3_build_config::get()
6
- .lib_dir
7
- .clone()
8
- .expect("Python lib dir not found")
9
- );
+ pyo3_build_config::get()
+ .lib_dir
+ .clone()
+ .map(|lib_dir| println!("cargo:rustc-link-arg=-Wl,-rpath,{}", lib_dir));
10
}
11
0 commit comments