mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
fix(ext/webgpu): allow to build on unsupported platforms (#25202)
This commit is contained in:
parent
b0ea6e0dc7
commit
aebe8947ae
1 changed files with 15 additions and 0 deletions
|
@ -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"))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue