mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 04:51:22 +00:00
fix(ext/webgpu): allow to build on unsupported platforms (#25202)
This commit is contained in:
parent
ac341d4aba
commit
7eaa395113
@ -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 New Issue
Block a user