summaryrefslogtreecommitdiff
path: root/xmake/modules/package/builder/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/package/builder/xmake.lua')
-rw-r--r--xmake/modules/package/builder/xmake.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/modules/package/builder/xmake.lua b/xmake/modules/package/builder/xmake.lua
index 2978cecc9..500bdf846 100644
--- a/xmake/modules/package/builder/xmake.lua
+++ b/xmake/modules/package/builder/xmake.lua
@@ -39,6 +39,13 @@ function build(package)
end
end
table.insert(argv, "--mode=" .. (is_mode("debug") and "debug" or "release"))
+ for name, value in pairs(package:configs()) do
+ value = tostring(value)
+ if value:find(" ", 1, true) then
+ value = '"' .. value .. '"'
+ end
+ table.insert(argv, "--" .. name .. "=" .. value)
+ end
os.vrunv("xmake", argv)
os.vrun("xmake" .. (option.get("verbose") and " -v" or ""))
end