diff options
| author | A2va <[email protected]> | 2023-12-03 15:40:59 +0100 |
|---|---|---|
| committer | A2va <[email protected]> | 2023-12-03 15:40:59 +0100 |
| commit | baa4b9e7c5bddd2d943b005ab8c05581aef044fd (patch) | |
| tree | f1b98941b4af9fed8fb99cadb3fa58989119e8ef | |
| parent | 69df00befdcb0f87314f18914bb1950ddb4606b6 (diff) | |
Move is_plat mingw
| -rw-r--r-- | xmake/modules/package/tools/meson.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua index 6351eeac1..70a616258 100644 --- a/xmake/modules/package/tools/meson.lua +++ b/xmake/modules/package/tools/meson.lua @@ -322,9 +322,9 @@ 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_configs_file(package, opt)) - elseif package:config("toolchains") or package:is_plat("mingw") then + elseif package:config("toolchains") then if _is_toolchain_compatible_with_host(package) then table.insert(configs, "--native-file=" .. _get_configs_file(package, opt)) else |
