diff --git a/fuse-sys/build.rs b/fuse-sys/build.rs index ef9ca37..5789489 100644 --- a/fuse-sys/build.rs +++ b/fuse-sys/build.rs @@ -1,3 +1,5 @@ +use std::env; + #[cfg(not(target_os = "macos"))] const LIBFUSE_NAME: &str = "fuse"; @@ -5,6 +7,13 @@ const LIBFUSE_NAME: &str = "fuse"; const LIBFUSE_NAME: &str = "osxfuse"; fn main() { + let k = "FUSE_SYS_DELEGATE_LINKING"; + + println!("cargo:rerun-if-env-changed={}", k); + if env::var(k).is_ok() { + return; + } + pkg_config::Config::new() .atleast_version("2.6.0") .probe(LIBFUSE_NAME)