diff options
| author | 45degree <[email protected]> | 2023-03-06 22:33:29 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-06 22:33:29 +0800 |
| commit | a69a486679f7476b862dc0bcb7dce137907e74ab (patch) | |
| tree | f6d61ad78a9d74e4eb343541fed6b0a0f5ba9b4a | |
| parent | 93fffa788f95387d2e4cc4cc397bc55b485c1624 (diff) | |
Update find_vulkansdk.lua
| -rw-r--r-- | xmake/modules/detect/sdks/find_vulkansdk.lua | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/xmake/modules/detect/sdks/find_vulkansdk.lua b/xmake/modules/detect/sdks/find_vulkansdk.lua index dac1902e2..cb9e0c980 100644 --- a/xmake/modules/detect/sdks/find_vulkansdk.lua +++ b/xmake/modules/detect/sdks/find_vulkansdk.lua @@ -41,17 +41,16 @@ function main(opt) { "$(env VK_SDK_PATH)", "$(env VULKAN_SDK)" - } - local arch = opt.arch or config.arch() or os.arch() - local binsuffix = ((is_host("windows") and arch == "x86") and "bin32" or "bin") - local libname = (is_host("windows") and "vulkan-1" or "vulkan") - local libsuffix = ((is_host("windows") and arch == "x86") and "lib32" or "lib") - + } if is_host("linux") then -- we attempt to find vulkan from /usr, e.g. /usr/include/vulkan/vulkan.h table.insert(paths, "/usr"); table.insert(paths, "/usr/local") end + local arch = opt.arch or config.arch() or os.arch() + local binsuffix = ((is_host("windows") and arch == "x86") and "bin32" or "bin") + local libname = (is_host("windows") and "vulkan-1" or "vulkan") + local libsuffix = ((is_host("windows") and arch == "x86") and "lib32" or "lib") -- find library local result = {links = {}, linkdirs = {}, includedirs = {}} |
