Skip to content

Commit 3fd3779

Browse files
authored
freebsd: Fix failure to build (#29587)
main was failing to build on FreeBSD. [joblink](https://github.com/zed-industries/zed/actions/runs/14721383651/job/41315738893) ``` error[E0425]: cannot find value `platform` in this scope --> crates/terminal/src/terminal_settings.rs:298:36 | 298 | let shell_name = format!("{platform}Exec"); | ^^^^^^^^ not found in this scope error[E0425]: cannot find value `platform` in this scope --> crates/terminal/src/terminal_settings.rs:304:46 | 304 | .read_value(&name(&format!("env.{platform}"))) | ^^^^^^^^ not found in this scope ``` CC: @P1n3appl3 Release Notes: - N/A
1 parent ab18085 commit 3fd3779

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/terminal/src/terminal_settings.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ impl settings::Settings for TerminalSettings {
293293
let platform = "linux";
294294
#[cfg(target_os = "macos")]
295295
let platform = "osx";
296+
#[cfg(target_os = "freebsd")]
297+
let platform = "freebsd";
296298

297299
// TODO: handle arguments
298300
let shell_name = format!("{platform}Exec");

0 commit comments

Comments
 (0)