diff options
| author | ruki <[email protected]> | 2021-05-05 00:35:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-05-05 00:35:04 +0800 |
| commit | 047625ac3c6cbe1d69cb41b0daaf7bc333d917ed (patch) | |
| tree | 9766c4d3baed4bb1a725bc2e2552ac1bec457505 /xmake/core/package | |
| parent | 2643e14e4dc294f4719963bdcb61ab12eac28161 (diff) | |
fix toplevel for package
Diffstat (limited to 'xmake/core/package')
| -rw-r--r-- | xmake/core/package/package.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 8ef9e5884..b96db2849 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -359,7 +359,8 @@ end -- is top level? user top requires in xmake.lua function _instance:is_toplevel() - return not self:parents() + local requireinfo = self:requireinfo() + return requireinfo and requireinfo.is_toplevel end -- is the system package? |
