diff options
| author | Jérôme Leclercq <[email protected]> | 2024-01-11 14:37:08 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-11 14:37:08 +0100 |
| commit | 08739827fbe62dfd904a61ff026e5e7541a9eff3 (patch) | |
| tree | 1e8c415d06c462e18b550b7b819cf60341893745 /xmake/modules/package | |
| parent | 6822fc03d6c52fbf68a7571050f675f283b94a44 (diff) | |
Fix package.tools.xmake
Fix #4598 (has been tested this time 😓 )
Diffstat (limited to 'xmake/modules/package')
| -rw-r--r-- | xmake/modules/package/tools/xmake.lua | 8 |
1 files 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 |
