summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-24 21:07:00 +0800
committerGitHub <[email protected]>2023-11-24 21:07:00 +0800
commit16f74fe53b4c240c8bee69e1d06dc821067f2817 (patch)
tree50ce20eefb2cde0fd2df6b5a1ee7d0440dfa8585
parent6b400aa1f7a578694079ccb84813a02192cb28e6 (diff)
parentb7cf39f1b647480a006a016a508ebaac859eaf57 (diff)
Merge pull request #4421 from A2va/fix-mingw-meson
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