Skip to content

Commit

Permalink
Fix mimalloc debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
WSSDude committed Feb 1, 2025
1 parent 754963f commit 310a31e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/m/mimalloc/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ package("mimalloc")
import("package.tools.cmake").install(package, configs, {cxflags = cxflags})

if package:is_plat("windows") and package:is_debug() then
local pdb = package:config("shared") and "mimalloc-debug.pdb" or "mimalloc-static-debug.pdb"
local dir = package:installdir(package:config("shared") and "bin" or "lib")
os.cp(path.join(package:buildir(), "mimalloc-debug.pdb"), dir)
os.cp(path.join(package:buildir(), "pdb", "Debug", pdb), dir)
end
else
import("package.tools.cmake").build(package, configs, {buildir = "build", cxflags = cxflags})
Expand All @@ -96,7 +97,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"))
Expand Down

0 comments on commit 310a31e

Please sign in to comment.