summaryrefslogtreecommitdiff
path: root/xmake/core/base/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-03 00:57:04 +0800
committerruki <[email protected]>2024-04-03 00:57:04 +0800
commitefbf92709a0be6e2fba38efe3e10a2684d4e3836 (patch)
treed135001bc3f1fbeb0887a05058b7aa7a45d5211d /xmake/core/base/xmake.lua
parent1cb62a5d466173ce4e8690eb320c44d5ddd6e1e2 (diff)
add xmake.arch
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 e892a5a04..dad96dc06 100644
--- a/xmake/core/base/xmake.lua
+++ b/xmake/core/base/xmake.lua
@@ -37,6 +37,11 @@ function xmake.version()
return xmake._VERSION_CACHE or nil
end
+-- get the xmake binary architecture
+function xmake.arch()
+ return xmake._XMAKE_ARCH
+end
+
-- get the git branch of xmake version, e.g. build: {"dev", "d4cff6e11"}
function xmake.branch()
return xmake.version():build()[1]