mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-24 21:41:33 +01:00
fff412665f
* Run clippy and rustfmt on CI * Error on warnings and fix a couple of missed lints * Move import inside function * Fix unix lints * Fix windows lints * Missed some async tests * Remove unneeded reference
22 lines
614 B
Rust
22 lines
614 B
Rust
#[cfg(target_os = "macos")]
|
|
fn main() {
|
|
use glob::glob;
|
|
let mut builder = cc::Build::new();
|
|
|
|
// Auto compile all .m files in the src/native directory
|
|
for entry in glob("src/native/**/*.m").expect("Failed to read glob pattern") {
|
|
let path = entry.expect("Failed to read glob entry");
|
|
builder.file(path.clone());
|
|
println!("cargo::rerun-if-changed={}", path.display());
|
|
}
|
|
|
|
builder
|
|
.flag("-fobjc-arc") // Enable Auto Reference Counting (ARC)
|
|
.compile("autofill");
|
|
}
|
|
|
|
#[cfg(not(target_os = "macos"))]
|
|
fn main() {
|
|
// Crate is only supported on macOS
|
|
}
|