diff options
| author | ruki <[email protected]> | 2023-11-23 09:02:20 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-23 09:02:20 +0800 |
| commit | f4bb23694823dd5772dd310022a5f04a9182c25f (patch) | |
| tree | 2accb84623063c6ad815760020ff51eeff836b12 | |
| parent | 97a4857408891fe5203e70bca9df824b5d28ba31 (diff) | |
| parent | 43233cadaa7639c0dc43e7314d106d4b6035ab9d (diff) | |
Merge pull request #4414 from xq114/patch-1
fix meson static library on windows
| -rw-r--r-- | xmake/modules/package/tools/meson.lua | 2 |
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 |
