summaryrefslogtreecommitdiff
path: root/core/src/xmake/engine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-20 23:05:19 +0800
committerGitHub <[email protected]>2022-05-20 23:05:19 +0800
commit6cf488d207c3009aba6319759a2cc2fb6aa7a405 (patch)
treec61583cf363192611d4f0be291b9e1fbe8afd2ab /core/src/xmake/engine.c
parentc6218b9b4cd17babf15fa46dbc65e895ace3e7d7 (diff)
parentd63ce0e016b58d03519f957d7ac9f36494c73486 (diff)
Merge pull request #2361 from xmake-io/buildcache
Add build cache instead of ccache
Diffstat (limited to 'core/src/xmake/engine.c')
-rw-r--r--core/src/xmake/engine.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c
index 43e073210..3c0597977 100644
--- a/core/src/xmake/engine.c
+++ b/core/src/xmake/engine.c
@@ -182,8 +182,9 @@ tb_int_t xm_path_is_absolute(lua_State* lua);
// the hash functions
tb_int_t xm_hash_uuid4(lua_State* lua);
-tb_int_t xm_hash_sha256(lua_State* lua);
+tb_int_t xm_hash_sha(lua_State* lua);
tb_int_t xm_hash_md5(lua_State* lua);
+tb_int_t xm_hash_xxhash(lua_State* lua);
// the base64 functions
tb_int_t xm_base64_encode(lua_State* lua);
@@ -406,8 +407,9 @@ static luaL_Reg const g_path_functions[] =
static luaL_Reg const g_hash_functions[] =
{
{ "uuid4", xm_hash_uuid4 }
-, { "sha256", xm_hash_sha256 }
+, { "sha", xm_hash_sha }
, { "md5", xm_hash_md5 }
+, { "xxhash", xm_hash_xxhash }
, { tb_null, tb_null }
};