diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index 81736c35641..dbe417a8001 100644 --- a/xmake/modules/package/tools/xmake.lua +++ b/xmake/modules/package/tools/xmake.lua @@ -513,13 +513,13 @@ function install(package, configs, opt) -- do build argv = {"build"} _set_builtin_argv(package, argv) - 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 + if opt.target then + table.insert(argv, opt.target) + end os.vrunv(os.programfile(), argv, {envs = envs}) -- do install