Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix non macos build

Louis Beaumont366ad638a235
diff --git a/screenpipe-vision/build.rs b/screenpipe-vision/build.rs
index 2f6de66aa..1b8fc8e8f 100644
--- a/screenpipe-vision/build.rs
+++ b/screenpipe-vision/build.rs
@@ -1,17 +1,16 @@
use std::env;
use std::path::PathBuf;
-#[cfg(target_os = "macos")]
fn main() {
- println!("cargo:rustc-link-lib=dylib=screenpipe");
+ #[cfg(target_os = "macos")]
+ {
+ println!("cargo:rustc-link-lib=dylib=screenpipe");
- // Get the package root directory
- let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
- let lib_path = PathBuf::from(manifest_dir).join("lib");
+ // Get the package root directory
+ let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
+ let lib_path = PathBuf::from(manifest_dir).join("lib");
- // Add the library search path
- println!("cargo:rustc-link-search=native={}", lib_path.display());
+ // Add the library search path
+ println!("cargo:rustc-link-search=native={}", lib_path.display());
+ }
}
-
-#[cfg(not(target_os = "macos"))]
-fn main() {}