diff options
| author | infinitY0369 <[email protected]> | 2024-03-08 05:14:06 +0900 |
|---|---|---|
| committer | infinitY0369 <[email protected]> | 2024-03-08 05:14:06 +0900 |
| commit | 37813e726b762ed437aee8cccee3bd9fe9251545 (patch) | |
| tree | a100892464086566ce71591c246f6f533975712b | |
| parent | c8e8b6c9395df8064ef374954a81b9e36f5278d3 (diff) | |
Fix target in tools/xmake
| -rw-r--r-- | xmake/modules/package/tools/xmake.lua | 6 |
1 files 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 |
