From b5b6457eb59ed73a32af9eff67ba05d2d21aa278 Mon Sep 17 00:00:00 2001 From: Maxime Griot Date: Thu, 5 Nov 2020 22:11:26 +0100 Subject: [PATCH] Enable mingw --- packages/m/mimalloc/xmake.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/m/mimalloc/xmake.lua b/packages/m/mimalloc/xmake.lua index 638410ae2..8bdd528b1 100644 --- a/packages/m/mimalloc/xmake.lua +++ b/packages/m/mimalloc/xmake.lua @@ -11,13 +11,13 @@ package("mimalloc") add_deps("cmake") - if is_plat("windows") then + if is_plat("windows", "mingw") then add_syslinks("advapi32") elseif is_plat("linux") then add_syslinks("pthread") end - on_install("windows", "linux", function (package) + on_install("windows", "mingw", "linux", function (package) local configs = {} table.insert(configs, "-DMI_OVERRIDE=" .. "OFF") table.insert(configs, "-DMI_BUILD_STATIC=" .. (package:config("shared") and "OFF" or "ON"))