diff options
| author | ruki <[email protected]> | 2021-08-14 13:29:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-08-14 13:29:49 +0800 |
| commit | 246711d74ea45b554456fdb6ac44a83f5424824a (patch) | |
| tree | e48ec6d0875b713e5806e7f2465b332f7f16e950 | |
| parent | 07987f21cfa52d66080df8a2a4af5f86e608ab8e (diff) | |
fix check option deps
| -rw-r--r-- | xmake/core/sandbox/modules/import/core/project/project.lua | 10 |
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() |
