summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-04-01 00:55:39 +0800
committerruki <[email protected]>2025-04-08 15:31:57 +0800
commite52e6ad4b4ee9cd20aa49a3da87a2c20e88f65f1 (patch)
treec51f52bf1ec1b6b4c9ca76587cd46200a71b4638
parentf4706b4b526fe88f5849eb0daa3a4d0713862d0c (diff)
check to add job
-rw-r--r--xmake/modules/async/jobgraph.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/async/jobgraph.lua b/xmake/modules/async/jobgraph.lua
index b9e9a46da..28126757f 100644
--- a/xmake/modules/async/jobgraph.lua
+++ b/xmake/modules/async/jobgraph.lua
@@ -89,6 +89,8 @@ function jobgraph:add(name, run, opt)
table.insert(groups, job)
end
end
+ else
+ raise("job(%s): has already been added!", name)
end
end