summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-08-14 13:29:49 +0800
committerruki <[email protected]>2021-08-14 13:29:49 +0800
commit246711d74ea45b554456fdb6ac44a83f5424824a (patch)
treee48ec6d0875b713e5806e7f2465b332f7f16e950
parent07987f21cfa52d66080df8a2a4af5f86e608ab8e (diff)
fix check option deps
-rw-r--r--xmake/core/sandbox/modules/import/core/project/project.lua10
1 files changed, 3 insertions, 7 deletions
diff --git a/xmake/core/sandbox/modules/import/core/project/project.lua b/xmake/core/sandbox/modules/import/core/project/project.lua
index 8e50dfb24..694532527 100644
--- a/xmake/core/sandbox/modules/import/core/project/project.lua
+++ b/xmake/core/sandbox/modules/import/core/project/project.lua
@@ -90,19 +90,15 @@ function sandbox_core_project.check()
-- init check task
local checked = {}
local checktask = function (index)
-
- -- get option
local opt = options[index]
if opt then
-
-- check deps of this option first
- for depname, dep in pairs(opt:deps()) do
- if not checked[depname] then
+ for _, dep in ipairs(opt:orderdeps()) do
+ if not checked[dep:name()] then
dep:check()
- checked[depname] = true
+ checked[dep:name()] = true
end
end
-
-- check this option
if not checked[opt:name()] then
opt:check()