summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/includes/xrepo/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/includes/xrepo/xmake.lua b/xmake/includes/xrepo/xmake.lua
index 2810dc5a8..4a9fe6494 100644
--- a/xmake/includes/xrepo/xmake.lua
+++ b/xmake/includes/xrepo/xmake.lua
@@ -32,7 +32,7 @@
-- @endcode
--
function xrepo_addenvs(envs)
- local packagename = "__xrepo_addenvs_" .. hash.strhash32(tostring(envs))
+ local packagename = "__xrepo_addenvs_" .. hash.strhash32(string.serialize(envs))
package(packagename)
on_load(function (package)
if type(envs) == "function" then