summaryrefslogtreecommitdiff
path: root/xmake/core/base/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-22 23:50:51 +0800
committerruki <[email protected]>2020-04-22 17:05:10 +0800
commit00f34ec89f7735b45a3ecdb55f0952d545d73cbb (patch)
tree805b1ebb127cc86f94f1ecc6dd883294337ef00d /xmake/core/base/xmake.lua
parent05df31effcfc9bc701387e1383b678f0914241be (diff)
pass engine name
Diffstat (limited to 'xmake/core/base/xmake.lua')
-rw-r--r--xmake/core/base/xmake.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/base/xmake.lua b/xmake/core/base/xmake.lua
index 973b66ace..e4db4851f 100644
--- a/xmake/core/base/xmake.lua
+++ b/xmake/core/base/xmake.lua
@@ -24,6 +24,11 @@ local xmake = xmake or {}
-- load modules
local semver = require("base/semver")
+-- get name
+function xmake.name()
+ return xmake._NAME or "xmake"
+end
+
-- get xmake version
function xmake.version()
if xmake._VERSION_CACHE == nil then