diff options
| author | ruki <[email protected]> | 2020-12-02 22:35:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-02 22:35:06 +0800 |
| commit | 73389efcbc66b7568958dcb135efd97a0eb3a53e (patch) | |
| tree | ab621b6db51b39736975a1f5996c6bfaa687489d /xmake/modules/package/tools/gn.lua | |
| parent | b0384dc3b81f05d4028f9e06dbb6caaa46f42013 (diff) | |
fix gn bugs
Diffstat (limited to 'xmake/modules/package/tools/gn.lua')
| -rw-r--r-- | xmake/modules/package/tools/gn.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/gn.lua b/xmake/modules/package/tools/gn.lua index 6e3a8dfd7..f606ca130 100644 --- a/xmake/modules/package/tools/gn.lua +++ b/xmake/modules/package/tools/gn.lua @@ -60,13 +60,13 @@ function generate(package, configs, opt) table.insert(argv, "gen") table.insert(argv, _get_buildir(opt)) for name, value in pairs(_get_configs(package, configs, opt)) do - if type(name) == "string" then + if type(value) == "string" then table.insert(args, name .. '=\"' .. value .. "\"") else table.insert(args, name .. "=" .. tostring(value)) end end - table.insert(argv, "--args='" .. table.concat(args, ' ') .. "'") + table.insert(argv, "--args=" .. table.concat(args, ' ')) -- do configure local gn = assert(find_tool("gn"), "gn not found!") |
