From b5584ad70761bc8c091b2dd9d2c4a638c4791cc3 Mon Sep 17 00:00:00 2001 From: star9029 Date: Wed, 4 Sep 2024 17:30:32 +0800 Subject: [PATCH] flecs: fix copy pdb --- packages/f/flecs/xmake.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/f/flecs/xmake.lua b/packages/f/flecs/xmake.lua index e6d3b4987..def7643cc 100644 --- a/packages/f/flecs/xmake.lua +++ b/packages/f/flecs/xmake.lua @@ -5,6 +5,7 @@ package("flecs") add_urls("https://github.com/SanderMertens/flecs/archive/refs/tags/$(version).tar.gz", "https://github.com/SanderMertens/flecs.git") + add_versions("v4.0.1", "d88928226b3a6e7ebc7c818db50b2fb5828021ed3bcd206c4e2a3b0406472d2b") add_versions("v4.0.0", "6c9826c8602f797acd775269d143763adfb3d3a93031cc81bced2b6d267469d2") add_versions("v3.2.12", "976551dabeecf3ae109648034b8dbc47f39f50226b6d71d76bace1d0b6e2d8ae") @@ -44,6 +45,9 @@ package("flecs") table.insert(configs, "-DFLECS_SHARED=" .. (package:config("shared") and "ON" or "OFF")) table.insert(configs, "-DFLECS_PIC=" .. (package:config("pic") and "ON" or "OFF")) import("package.tools.cmake").install(package, configs) + + local pdb = path.join(package:buildir(), "flecs.pdb") + os.trycp(pdb, package:installdir(package:config("shared") and "bin" or "lib")) end) on_test(function (package)