From 37813e726b762ed437aee8cccee3bd9fe9251545 Mon Sep 17 00:00:00 2001 From: infinitY0369 Date: Fri, 8 Mar 2024 05:14:06 +0900 Subject: Fix target in tools/xmake --- xmake/modules/package/tools/xmake.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index 81736c356..dbe417a80 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 -- cgit v1.3.1