Skip to content

Commit f2a36b5

Browse files
committed
Py: Fix build.rs on CI
1 parent b577429 commit f2a36b5

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

pysplashsurf/build.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
fn main() {
2+
// Required to run cargo check or stub gen outside of maturing build
23
if std::env::var_os("CARGO_CFG_TARGET_OS=macos").is_some() {
3-
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-
);
4+
pyo3_build_config::get()
5+
.lib_dir
6+
.clone()
7+
.map(|lib_dir| println!("cargo:rustc-link-arg=-Wl,-rpath,{}", lib_dir));
108
}
119
}

0 commit comments

Comments
 (0)