1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00

fix(ext/webgpu): allow to build on unsupported platforms (#25202)

This commit is contained in:
cions 2024-08-25 22:59:11 +09:00 committed by GitHub
parent b0ea6e0dc7
commit aebe8947ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"))
}