Skip to content

Commit

Permalink
fix(ext/webgpu): allow to build on unsupported platforms (#25202)
Browse files Browse the repository at this point in the history
  • Loading branch information
cions authored Aug 25, 2024
1 parent b0ea6e0 commit aebe894
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ext/webgpu/byow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,18 @@ fn raw_window(

Ok((win_handle, display_handle))
}

#[cfg(not(any(
target_os = "macos",
target_os = "windows",
target_os = "linux",
target_os = "freebsd",
target_os = "openbsd",
)))]
fn raw_window(
_system: &str,
_window: *const c_void,
_display: *const c_void,
) -> Result<RawHandles, AnyError> {
Err(type_error("Unsupported platform"))
}

0 comments on commit aebe894

Please sign in to comment.