Merge pull request #47 from zed-industries/macos-10-compat

Max Brunsfeld created

Ensure that the bundle runs on macOS versions < 11.0

Change summary

gpui/build.rs  | 1 +
zed/Cargo.toml | 1 +
zed/build.rs   | 3 +++
3 files changed, 5 insertions(+)

Detailed changes

gpui/build.rs 🔗

@@ -56,6 +56,7 @@ fn compile_metal_shaders() {
             "macosx",
             "metal",
             "-gline-tables-only",
+            "-mmacosx-version-min=10.14",
             "-MO",
             "-c",
             shader_path,

zed/Cargo.toml 🔗

@@ -49,3 +49,4 @@ unindent = "0.1.7"
 icon = ["app-icon@2x.png", "app-icon.png"]
 identifier = "dev.zed.Zed"
 name = "Zed"
+osx_minimum_system_version = "10.14"

zed/build.rs 🔗

@@ -0,0 +1,3 @@
+fn main() {
+    println!("cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=10.14");
+}