From 39a7e8b21849bf1102f0d71ca35fc2e65b5946fd Mon Sep 17 00:00:00 2001 From: Louis Poirier Date: Tue, 11 Feb 2025 20:16:57 +0100 Subject: feat: improve GN tool to support extra arguments Allows to pass extra arguments to ninja command. It defaults to an empty table (no arguments) for backward compatibility. --- xmake/modules/package/tools/gn.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmake/modules/package/tools/gn.lua') diff --git a/xmake/modules/package/tools/gn.lua b/xmake/modules/package/tools/gn.lua index fe6566ab4..461f43259 100644 --- a/xmake/modules/package/tools/gn.lua +++ b/xmake/modules/package/tools/gn.lua @@ -124,7 +124,8 @@ function build(package, configs, opt) -- do build local buildir = _get_buildir(opt) - ninja.build(package, {}, {buildir = buildir, envs = opt.envs or buildenvs(package, opt)}) + local argv = opt.argv or {} + ninja.build(package, argv, {buildir = buildir, envs = opt.envs or buildenvs(package, opt)}) end -- install package -- cgit v1.3.1