diff options
| author | ruki <[email protected]> | 2021-02-24 23:50:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-02-24 23:50:47 +0800 |
| commit | 7b0fb47adf7cd9f99b2fa3cee1d614b613506f74 (patch) | |
| tree | 83e017b660bfc6a424cfcf71c390fbad1caaef11 /xmake/core/project/target.lua | |
| parent | a91d3fc4909e85fe28cc5a57623a23f8694752b5 (diff) | |
fix orderpkgs
Diffstat (limited to 'xmake/core/project/target.lua')
| -rw-r--r-- | xmake/core/project/target.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 907c6ba10..d1a9b3efe 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -726,7 +726,7 @@ function _instance:orderpkgs(opt) if requires then for _, packagename in ipairs(table.wrap(self:get("packages", opt))) do local pkg = requires[packagename] - if pkg:enabled() then + if pkg and pkg:enabled() then table.insert(packages, pkg) end end |
