From 7dbd586d2bb82a0e0d8aeabc2555bcdec8b6af01 Mon Sep 17 00:00:00 2001 From: richerfu <32590310+richerfu@users.noreply.github.com> Date: Mon, 10 Feb 2025 07:39:15 +0800 Subject: [PATCH] fix(ohos): OpenHarmony should link libvulkan.so (#983) --- ash/src/entry.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ash/src/entry.rs b/ash/src/entry.rs index 15296509..b590fa4b 100644 --- a/ash/src/entry.rs +++ b/ash/src/entry.rs @@ -69,12 +69,13 @@ impl Entry { target_os = "macos", target_os = "ios", target_os = "android", - target_os = "fuchsia" + target_os = "fuchsia", + target_env = "ohos" )) ))] const LIB_PATH: &str = "libvulkan.so.1"; - #[cfg(any(target_os = "android", target_os = "fuchsia"))] + #[cfg(any(target_os = "android", target_os = "fuchsia", target_env = "ohos"))] const LIB_PATH: &str = "libvulkan.so"; #[cfg(any(target_os = "macos", target_os = "ios"))]