summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-22 22:32:01 +0800
committerruki <[email protected]>2023-11-22 22:32:01 +0800
commitd3a27747a757200dc6d0454469a18e9469219f59 (patch)
tree897a0938f6f2f6833e6b73b0e656d1458c3ea03a
parentc9ed3d7e215fcece3348e6d7a80597f4aefa91b5 (diff)
fix meson flags #4407
-rw-r--r--xmake/modules/package/tools/meson.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua
index 29e4cad35..bfb981256 100644
--- a/xmake/modules/package/tools/meson.lua
+++ b/xmake/modules/package/tools/meson.lua
@@ -73,6 +73,13 @@ function _translate_flags(package, flags)
end
end
flags = flags_new
+ elseif package:is_plat("windows") then
+ for idx, flag in ipairs(flags) do
+ -- @see https://github.com/xmake-io/xmake/issues/4407
+ if flag:startswith("-libpath:") then
+ flags[idx] = flag:gsub("%-libpath:", "/libpath:")
+ end
+ end
end
return flags
end