From 8bde75e111fa53b893b0077122b51be7a154e751 Mon Sep 17 00:00:00 2001 From: WSSDude <41929176+WSSDude@users.noreply.github.com> Date: Sat, 1 Feb 2025 06:40:30 +0100 Subject: [PATCH] Fix mimalloc debug build --- packages/m/mimalloc/xmake.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/m/mimalloc/xmake.lua b/packages/m/mimalloc/xmake.lua index 0ee3023b4ef..d44cd44b7e7 100644 --- a/packages/m/mimalloc/xmake.lua +++ b/packages/m/mimalloc/xmake.lua @@ -30,6 +30,8 @@ package("mimalloc") add_configs("etw", {description = "Enable Event tracing for Windows", default = false, type = "boolean"}) end + set_policy("package.cmake_generator.ninja", true) + add_deps("cmake") if is_plat("windows") then @@ -79,11 +81,6 @@ package("mimalloc") if package:gitref() or package:version():ge("2.1.2") then table.insert(configs, "-DMI_INSTALL_TOPLEVEL=ON") import("package.tools.cmake").install(package, configs, {cxflags = cxflags}) - - if package:is_plat("windows") and package:is_debug() then - local dir = package:installdir(package:config("shared") and "bin" or "lib") - os.cp(path.join(package:buildir(), "mimalloc-debug.pdb"), dir) - end else import("package.tools.cmake").build(package, configs, {buildir = "build", cxflags = cxflags}) @@ -96,7 +93,7 @@ package("mimalloc") elseif package:is_plat("macosx") then os.trycp("build/*.dylib", package:installdir("bin")) os.trycp("build/*.dylib", package:installdir("lib")) - os.trycp("build/*.a", package:installdir("lib")) + os.trycp("build/*.a", package:installdir("lib")) else os.trycp("build/*.so", package:installdir("bin")) os.trycp("build/*.so", package:installdir("lib"))