mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
rutabaga_gfx: fix cross-compile on nto
BUG=287085485 TEST=compile using instructions in bug Change-Id: Ib79ce1d96702aecdc656cf4763cbd16e91827a16 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5247985 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
parent
76ec7c4707
commit
6664cd2bd7
2 changed files with 4 additions and 3 deletions
|
@ -7,7 +7,8 @@ cfg_if::cfg_if! {
|
|||
pub(crate) mod linux;
|
||||
mod epoll_internal;
|
||||
use linux as platform;
|
||||
} else if #[cfg(any(target_os = "fuchsia",target_os = "windows", target_os = "macos"))] {
|
||||
} else if #[cfg(any(target_os = "fuchsia",target_os = "windows", target_os = "macos",
|
||||
target_os = "nto"))] {
|
||||
pub(crate) mod stub;
|
||||
use stub as platform;
|
||||
} else {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#[cfg(any(target_os = "android", target_os = "linux"))]
|
||||
pub mod linux;
|
||||
|
||||
#[cfg(any(target_os = "fuchsia", target_os = "macos"))]
|
||||
#[cfg(any(target_os = "fuchsia", target_os = "macos", target_os = "nto"))]
|
||||
pub mod stub;
|
||||
|
||||
#[cfg(windows)]
|
||||
|
@ -16,7 +16,7 @@ cfg_if::cfg_if! {
|
|||
pub use linux as platform;
|
||||
} else if #[cfg(windows)] {
|
||||
pub use windows as platform;
|
||||
} else if #[cfg(any(target_os = "fuchsia", target_os = "macos"))] {
|
||||
} else if #[cfg(any(target_os = "fuchsia", target_os = "macos", target_os = "nto"))] {
|
||||
pub use stub as platform;
|
||||
} else {
|
||||
compile_error!("Unsupported platform");
|
||||
|
|
Loading…
Reference in a new issue