From 86bb809c39670b54ada0d74fefc9e305d2232d2e Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Fri, 30 Aug 2019 09:07:21 -0400 Subject: [PATCH] Fix building on ios --- wgpu-native/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu-native/Cargo.toml b/wgpu-native/Cargo.toml index c44fc6daa..4f90b2b86 100644 --- a/wgpu-native/Cargo.toml +++ b/wgpu-native/Cargo.toml @@ -37,10 +37,10 @@ rendy-descriptor = "0.4" serde = { version = "1.0", features = ["serde_derive"], optional = true } vec_map = "0.8" -[target.'cfg(unix)'.dependencies] +[target.'cfg(all(unix, not(target_os = "ios"), not(target_os = "macos")))'.dependencies] gfx-backend-vulkan = { version = "0.3.0", features = ["x11"] } -[target.'cfg(not(unix))'.dependencies] +[target.'cfg(any(not(unix), target_os = "ios", target_os = "macos"))'.dependencies] gfx-backend-vulkan = "0.3" [target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies]