File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ rand_distr = { workspace = true }
3030rayon = { workspace = true }
3131safetensors = { workspace = true }
3232thiserror = { workspace = true }
33- ug-cuda = { workspace = true , optional = true }
34- ug-metal = { workspace = true , optional = true }
3533yoke = { workspace = true }
3634zip = { workspace = true }
3735
38- [target .'cfg(not(target_arch = "wasm32"))' .dependencies ]
36+ [target .'cfg(all( not(target_arch = "wasm32"), not(target_os = "ios") ))' .dependencies ]
3937ug = { workspace = true }
38+ ug-cuda = { workspace = true , optional = true }
39+ ug-metal = { workspace = true , optional = true }
4040
4141[dev-dependencies ]
4242anyhow = { workspace = true }
Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ pub struct UgIOp1 {
386386
387387impl UgIOp1 {
388388 #[ allow( unused) ]
389- #[ cfg( not( target_arch = "wasm32" ) ) ]
389+ #[ cfg( all ( not( target_arch = "wasm32" ) , not ( target_os = "ios" ) ) ) ]
390390 pub fn new (
391391 name : & ' static str ,
392392 kernel : ug:: lang:: ssa:: Kernel ,
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ pub enum Error {
172172 #[ error( "Metal error {0}" ) ]
173173 Metal ( #[ from] MetalError ) ,
174174
175- #[ cfg( not( target_arch = "wasm32" ) ) ]
175+ #[ cfg( all ( not( target_arch = "wasm32" ) , not ( target_os = "ios" ) ) ) ]
176176 #[ error( transparent) ]
177177 Ug ( #[ from] ug:: Error ) ,
178178
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ impl std::ops::Deref for MetalDevice {
7373}
7474
7575impl MetalDevice {
76- #[ cfg( not( target_arch = "wasm32" ) ) ]
76+ #[ cfg( all ( not( target_arch = "wasm32" ) , not ( target_os = "ios" ) ) ) ]
7777 pub fn compile (
7878 & self ,
7979 func_name : & ' static str ,
You can’t perform that action at this time.
0 commit comments