mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix build error
This commit is contained in:
parent
8ba19ce2f5
commit
1eb1c46968
1 changed files with 6 additions and 5 deletions
|
|
@ -46,16 +46,17 @@ fn configure_display_backend() -> Option<String> {
|
|||
|
||||
set_env_if_absent("WEBKIT_DISABLE_DMABUF_RENDERER", "1");
|
||||
Some(
|
||||
"Wayland session detected without X11; leaving Wayland enabled (set WINIT_UNIX_BACKEND/GDK_BACKEND manually if needed)."
|
||||
.into(),
|
||||
)
|
||||
"Wayland session detected without X11; leaving Wayland enabled (set WINIT_UNIX_BACKEND/GDK_BACKEND manually if needed)."
|
||||
.into(),
|
||||
)
|
||||
}
|
||||
|
||||
fn main() {
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
let backend_note = configure_display_backend();
|
||||
eprintln!("{backend_note}");
|
||||
if let Some(backend_note) = configure_display_backend() {
|
||||
eprintln!("{backend_note:?}");
|
||||
}
|
||||
}
|
||||
|
||||
opencode_lib::run()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue