linux: disable mac-os specific build commands

This commit is contained in:
Dzmitry Malyshau 2024-02-04 15:58:29 -08:00
parent 224fe13f9f
commit b13b5726c5

View file

@ -1,6 +1,7 @@
use std::process::Command;
fn main() {
if cfg!(target_os = "macos") {
println!("cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=10.15.7");
println!("cargo:rerun-if-env-changed=ZED_BUNDLE");
@ -20,6 +21,7 @@ fn main() {
// Register exported Objective-C selectors, protocols, etc
println!("cargo:rustc-link-arg=-Wl,-ObjC");
}
// Populate git sha environment variable if git is available
println!("cargo:rerun-if-changed=../../.git/logs/HEAD");