From 6136201dff63edcf59106cc6f7a93b4a09c7ff68 Mon Sep 17 00:00:00 2001 From: Jérôme Leclercq Date: Fri, 14 Mar 2025 10:07:54 +0100 Subject: meson: Force to use vs env on Windows to not detect MinGW if both are available --- xmake/modules/package/tools/meson.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua index a9876fe6b..8a34682a4 100644 --- a/xmake/modules/package/tools/meson.lua +++ b/xmake/modules/package/tools/meson.lua @@ -346,6 +346,7 @@ function _get_configs(package, configs, opt) -- add vs runtimes flags if package:is_plat("windows") then + table.insert(configs, "--vsenv") if package:has_runtime("MT") then table.insert(configs, "-Db_vscrt=mt") elseif package:has_runtime("MTd") then -- cgit v1.3.1