Enable mingw

pull/108/head
Maxime Griot 4 years ago
parent a2627d6fbc
commit b5b6457eb5
  1. 4
      packages/m/mimalloc/xmake.lua

@ -11,13 +11,13 @@ package("mimalloc")
add_deps("cmake") add_deps("cmake")
if is_plat("windows") then if is_plat("windows", "mingw") then
add_syslinks("advapi32") add_syslinks("advapi32")
elseif is_plat("linux") then elseif is_plat("linux") then
add_syslinks("pthread") add_syslinks("pthread")
end end
on_install("windows", "linux", function (package) on_install("windows", "mingw", "linux", function (package)
local configs = {} local configs = {}
table.insert(configs, "-DMI_OVERRIDE=" .. "OFF") table.insert(configs, "-DMI_OVERRIDE=" .. "OFF")
table.insert(configs, "-DMI_BUILD_STATIC=" .. (package:config("shared") and "OFF" or "ON")) table.insert(configs, "-DMI_BUILD_STATIC=" .. (package:config("shared") and "OFF" or "ON"))

Loading…
Cancel
Save