summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoildkv <[email protected]>2023-11-23 00:15:59 +0800
committerGitHub <[email protected]>2023-11-23 00:15:59 +0800
commit43233cadaa7639c0dc43e7314d106d4b6035ab9d (patch)
tree6e7ec2cb16ba4208750b0c3613b03ccde66b43c7
parentefe8b4c68109d6c8d09c9a98236bf9bd11164ed3 (diff)
fix meson static library on windows
-rw-r--r--xmake/modules/package/tools/meson.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua
index c8e07f2da..e1fa26561 100644
--- a/xmake/modules/package/tools/meson.lua
+++ b/xmake/modules/package/tools/meson.lua
@@ -331,7 +331,7 @@ end
-- fix libname on windows
function _fix_libname_on_windows(package)
for _, lib in ipairs(os.files(path.join(package:installdir("lib"), "lib*.a"))) do
- os.mv(lib, lib:gsub("(.+)lib(.-)%.a", "%1%2.lib"))
+ os.mv(lib, lib:gsub("(.+)\\lib(.-)%.a", "%1\\%2.lib"))
end
end