diff options
| -rw-r--r-- | xmake/modules/package/tools/gn.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/gn.lua b/xmake/modules/package/tools/gn.lua index 3f0cbe1a9..2c5341476 100644 --- a/xmake/modules/package/tools/gn.lua +++ b/xmake/modules/package/tools/gn.lua @@ -61,7 +61,9 @@ function generate(package, configs, opt) table.insert(argv, _get_buildir(opt)) for name, value in pairs(_get_configs(package, configs, opt)) do if type(value) == "string" then - table.insert(args, name .. '=\"' .. value .. "\"") + table.insert(args, name .. "=\"" .. value .. "\"") + elseif type(value) == "table" then + table.insert(args, name .. "=[\"" .. table.concat(value, "\",\"") .. "\"]") else table.insert(args, name .. "=" .. tostring(value)) end |
