summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2025-03-14 10:07:54 +0100
committerGitHub <[email protected]>2025-03-14 10:07:54 +0100
commit6136201dff63edcf59106cc6f7a93b4a09c7ff68 (patch)
tree0b7ccd1a3ae680c50bc07f2d211014ced89ea4d9
parent153d72243beeccbf7b5d9056413548f0d6b7b3b9 (diff)
meson: Force to use vs env on Windows
to not detect MinGW if both are available
-rw-r--r--xmake/modules/package/tools/meson.lua1
1 files changed, 1 insertions, 0 deletions
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