Files
ports/editors/zed/files/patch-crates_zed_src_zed.rs
2026-10-04 04:07:15 +00:00

22 lines
897 B
Rust

--- crates/zed/src/zed.rs.orig 2026-09-09 15:43:20 UTC
+++ crates/zed/src/zed.rs
@@ -113,8 +113,10 @@ const MERCH_URL: &str = "https://merch.zed.dev/";
const STATUS_URL: &str = "https://status.zed.dev";
const MERCH_URL: &str = "https://merch.zed.dev/";
+#[cfg(not(target_os = "freebsd"))]
pub struct CrashHandler(pub Arc<crashes::Client>);
+#[cfg(not(target_os = "freebsd"))]
impl gpui::Global for CrashHandler {}
actions!(
@@ -577,6 +579,7 @@ pub fn initialize_workspace(app_state: Arc<AppState>,
if let Some(specs) = window.gpu_specs() {
log::info!("Using GPU: {:?}", specs);
show_software_emulation_warning_if_needed(specs.clone(), window, cx);
+ #[cfg(not(target_os = "freebsd"))]
if let Some(crash_client) = cx.try_global::<CrashHandler>() {
crashes::set_gpu_info(&crash_client.0, specs);
}