From 08739827fbe62dfd904a61ff026e5e7541a9eff3 Mon Sep 17 00:00:00 2001 From: Jérôme Leclercq Date: Thu, 11 Jan 2024 14:37:08 +0100 Subject: Fix package.tools.xmake MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #4598 (has been tested this time 😓 ) --- xmake/modules/package/tools/xmake.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index b9cca10c0..379a46d19 100644 --- a/xmake/modules/package/tools/xmake.lua +++ b/xmake/modules/package/tools/xmake.lua @@ -218,10 +218,6 @@ function _get_configs(package, configs, opt) if configs.kind == nil then table.insert(configs, "--kind=" .. (package:config("shared") and "shared" or "static")) end - local njob = opt.jobs or option.get("jobs") - if njob then - table.insert(configs, "--jobs=" .. njob) - end if package:is_plat("windows") then _get_configs_for_windows(package, configs, opt) elseif package:is_plat("android") then @@ -500,6 +496,10 @@ function install(package, configs, opt) if opt.target then table.insert(argv, opt.target) end + local njob = opt.jobs or option.get("jobs") + if njob then + table.insert(argv, "--jobs=" .. njob) + end os.vrunv("xmake", argv, {envs = envs}) -- do install -- cgit v1.3.1