diff options
| author | ruki <[email protected]> | 2023-11-22 22:32:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-22 22:32:01 +0800 |
| commit | d3a27747a757200dc6d0454469a18e9469219f59 (patch) | |
| tree | 897a0938f6f2f6833e6b73b0e656d1458c3ea03a | |
| parent | c9ed3d7e215fcece3348e6d7a80597f4aefa91b5 (diff) | |
fix meson flags #4407
| -rw-r--r-- | xmake/modules/package/tools/meson.lua | 7 |
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 |
