Skip to content

Commit

Permalink
fix(ohos): OpenHarmony should link libvulkan.so
Browse files Browse the repository at this point in the history
  • Loading branch information
richerfu committed Feb 7, 2025
1 parent 222e41e commit 8e37259
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ash/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))]
Expand Down

0 comments on commit 8e37259

Please sign in to comment.