summaryrefslogtreecommitdiff
path: root/xmake/core/project/target.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-02-24 23:50:47 +0800
committerruki <[email protected]>2021-02-24 23:50:47 +0800
commit7b0fb47adf7cd9f99b2fa3cee1d614b613506f74 (patch)
tree83e017b660bfc6a424cfcf71c390fbad1caaef11 /xmake/core/project/target.lua
parenta91d3fc4909e85fe28cc5a57623a23f8694752b5 (diff)
fix orderpkgs
Diffstat (limited to 'xmake/core/project/target.lua')
-rw-r--r--xmake/core/project/target.lua2
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