summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/tools/meson.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua
index b7a396a02..0ee1839b6 100644
--- a/xmake/modules/package/tools/meson.lua
+++ b/xmake/modules/package/tools/meson.lua
@@ -127,7 +127,7 @@ function _get_ldflags_from_packagedeps(package, opt)
end
-- get the build environments
-function buildenvs(package)
+function buildenvs(package, opt)
local envs = {}
opt = opt or {}
if package:is_plat(os.host()) then
@@ -232,7 +232,7 @@ function generate(package, configs, opt)
end
-- do configure
- os.vrunv("meson", argv, {envs = opt.envs or buildenvs(package)})
+ os.vrunv("meson", argv, {envs = opt.envs or buildenvs(package, opt)})
end
-- build package