From 5ad726a3a2b052981e4cb5e6bc73be7fa175743f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Fri, 7 Jun 2024 15:42:25 +0200 Subject: [PATCH] Update xmake.lua --- packages/y/yasm/xmake.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/y/yasm/xmake.lua b/packages/y/yasm/xmake.lua index 6857a2000..67063c564 100644 --- a/packages/y/yasm/xmake.lua +++ b/packages/y/yasm/xmake.lua @@ -10,14 +10,18 @@ package("yasm") add_deps("cmake") - if is_host("windows", "msys") then + if is_subhost("mingw", "msys") then add_deps("dlfcn-win32") end on_install("@windows", "@linux", "@macosx", "@msys", function (package) local configs = {"-DYASM_BUILD_TESTS=OFF"} table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) - import("package.tools.cmake").install(package, configs) + local opt + if is_subhost("mingw", "msys") then + opt = {packagedeps = "dlfcn-win32"} + end + import("package.tools.cmake").install(package, configs, opt) end) on_test(function (package)