summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/package/tools/xmake.lua')
-rw-r--r--xmake/modules/package/tools/xmake.lua12
1 files changed, 2 insertions, 10 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua
index 4b625342b..2bb9ba164 100644
--- a/xmake/modules/package/tools/xmake.lua
+++ b/xmake/modules/package/tools/xmake.lua
@@ -34,22 +34,14 @@ function install(package, configs)
for _, name in ipairs(names) do
local value = get_config(name)
if value ~= nil then
- value = tostring(value)
- if value:find(" ", 1, true) then
- value = '"' .. value .. '"'
- end
- table.insert(argv, "--" .. name .. "=" .. value)
+ table.insert(argv, "--" .. name .. "=" .. tostring(value))
end
end
table.insert(argv, "--mode=" .. (package:debug() and "debug" or "release"))
-- inherit require and option configs
for name, value in pairs(table.join(package:configs() or {}, configs or {})) do
- value = tostring(value)
- if value:find(" ", 1, true) then
- value = '"' .. value .. '"'
- end
- table.insert(argv, "--" .. name .. "=" .. value)
+ table.insert(argv, "--" .. name .. "=" .. tostring(value))
end
if option.get("verbose") then
table.insert(argv, "-v")