From 2cec883569d4d94660704710729b6e6b7a802052 Mon Sep 17 00:00:00 2001 From: Daria Sukhonina Date: Mon, 4 Sep 2023 13:56:09 +0300 Subject: [PATCH] Add psvita support --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index fa1267c..a2f6979 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -433,6 +433,11 @@ fn get_num_cpus() -> usize { unsafe { hermit_abi::get_processor_count() } } +#[cfg(target_os = "vita")] +fn get_num_cpus() -> usize { + 3 +} + #[cfg(not(any( target_os = "nacl", target_os = "macos", @@ -449,6 +454,7 @@ fn get_num_cpus() -> usize { target_os = "netbsd", target_os = "haiku", target_os = "hermit", + target_os = "vita", windows, )))] fn get_num_cpus() -> usize {