diff options
| -rw-r--r-- | xmake/actions/run/main.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/actions/run/main.lua b/xmake/actions/run/main.lua index e730bf246..9e2a9ce40 100644 --- a/xmake/actions/run/main.lua +++ b/xmake/actions/run/main.lua @@ -176,7 +176,7 @@ function _check_targets(targetname, group_pattern) table.insert(targets, target) else for _, target in ipairs(project.ordertargets()) do - if target:is_binary() then + if target:is_binary() or target:script("run") then local group = target:get("group") if (target:is_default() and not group_pattern) or option.get("all") or (group_pattern and group and group:match(group_pattern)) then table.insert(targets, target) @@ -232,7 +232,7 @@ function main() else local targets = {} for _, target in ipairs(project.ordertargets()) do - if target:is_binary() then + if target:is_binary() or target:script("run") then local group = target:get("group") if (target:is_default() and not group_pattern) or option.get("all") or (group_pattern and group and group:match(group_pattern)) then table.insert(targets, target) |
