diff options
| author | xq114 <[email protected]> | 2021-03-21 12:32:21 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2021-03-21 12:32:21 +0800 |
| commit | b5ed77a7126bf8e708387b8a0555fddae9c22143 (patch) | |
| tree | c7b92ae2685467e2c2f30bf5c57a127be79e5609 /xmake/modules | |
| parent | 58cd3e6ea45f726fd258710092773ae23b19a050 (diff) | |
improve package.tools.gn
Diffstat (limited to 'xmake/modules')
| -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 |
