From e52e6ad4b4ee9cd20aa49a3da87a2c20e88f65f1 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 1 Apr 2025 00:55:39 +0800 Subject: check to add job --- xmake/modules/async/jobgraph.lua | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.3.1