diff options
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 52a3eba13..8a0b1b83b 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -99,6 +99,14 @@ function _instance:name() return self._NAME end +-- get the package alias +function _instance:alias() + local requireinfo = self:requireinfo() + if requireinfo then + return requireinfo.alias + end +end + -- get the package vendor function _instance:vendor() return self._VENDOR |
