summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-12-29 17:47:50 +0800
committerGitHub <[email protected]>2021-12-29 17:47:50 +0800
commit200fc56af3e51e081a306f91bc749619c298750b (patch)
tree67928d70838fd0ebe98f635de11750163a91cc9f
parent66c17b716042be1c7d21c407a321cb4894924da5 (diff)
Update meson.lua
-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