diff options
| author | ruki <[email protected]> | 2020-04-25 22:47:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-25 22:47:18 +0800 |
| commit | 0b6425642adb9c562124ddf983da21b585e29e10 (patch) | |
| tree | 0b0652c41949e8a91e1a2aa1cd852c61f5376427 | |
| parent | dbc191d66e02613912ea63e838d728a33d4e7b69 (diff) | |
improve run
| -rw-r--r-- | xmake/actions/run/main.lua | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/xmake/actions/run/main.lua b/xmake/actions/run/main.lua index 86c602fa3..c04c5c8b9 100644 --- a/xmake/actions/run/main.lua +++ b/xmake/actions/run/main.lua @@ -151,13 +151,6 @@ function _run(target) end end --- run the all dependent targets -function _run_deps(target) - for _, dep in ipairs(target:orderdeps()) do - _run(dep) - end -end - -- check targets function _check_targets(targetname) @@ -212,14 +205,12 @@ function main() -- run the given target? if targetname then - _run_deps(project.target(targetname)) _run(project.target(targetname)) else -- run default or all binary targets for _, target in pairs(project.targets()) do local default = target:get("default") if (default == nil or default == true or option.get("all")) and target:targetkind() == "binary" then - _run_deps(target) _run(target) end end |
