From 2889ebdd2c1731edb58d69e6f40cc0d71dcbe78f Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 11 Mar 2023 00:12:24 +0800 Subject: improve run #3495 --- xmake/actions/run/main.lua | 4 ++-- 1 file 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) -- cgit v1.3.1