diff options
| author | ruki <[email protected]> | 2024-03-08 14:40:44 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-08 14:40:44 +0800 |
| commit | 80946125631b9a3878f6a37ce58a3442a8d3aa82 (patch) | |
| tree | a100892464086566ce71591c246f6f533975712b | |
| parent | c8e8b6c9395df8064ef374954a81b9e36f5278d3 (diff) | |
| parent | 37813e726b762ed437aee8cccee3bd9fe9251545 (diff) | |
Merge pull request #4808 from infinitY0369/fix-tools-xmake
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 |
