summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA2va <[email protected]>2023-11-24 09:31:19 +0100
committerA2va <[email protected]>2023-11-24 09:31:19 +0100
commitb7cf39f1b647480a006a016a508ebaac859eaf57 (patch)
tree50ce20eefb2cde0fd2df6b5a1ee7d0440dfa8585
parent6b400aa1f7a578694079ccb84813a02192cb28e6 (diff)
Fix mingw with meson
-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 e1fa26561..2a59fbb44 100644
--- a/xmake/modules/package/tools/meson.lua
+++ b/xmake/modules/package/tools/meson.lua
@@ -307,7 +307,7 @@ function _get_configs(package, configs, opt)
end
-- add cross file
- if package:is_cross() then
+ if package:is_cross() or package:is_plat("mingw") then
table.insert(configs, "--cross-file=" .. _get_cross_file(package, opt))
end