Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Don't separately rebuild crates for the build platform (#35084)

Julia Ryana2408f353ba2
diff --git a/Cargo.toml b/Cargo.toml
index 90629501276..ea01003f365 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -720,6 +720,11 @@ workspace-hack = { path = "tooling/workspace-hack" }
split-debuginfo = "unpacked"
codegen-units = 16
+# mirror configuration for crates compiled for the build platform
+# (without this cargo will compile ~400 crates twice)
+[profile.dev.build-override]
+codegen-units = 16
+
[profile.dev.package]
taffy = { opt-level = 3 }
cranelift-codegen = { opt-level = 3 }