summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-03-11 00:12:24 +0800
committerruki <[email protected]>2023-03-11 00:12:24 +0800
commit2889ebdd2c1731edb58d69e6f40cc0d71dcbe78f (patch)
treec213b006b74b6cb839da9e362443ef7cc9aba239
parent744ba2c9444fe7b7364314530db5aa6aa3c43d81 (diff)
improve run #3495
-rw-r--r--xmake/actions/run/main.lua4
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)