summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2023-12-22 23:21:45 +0800
committerruki <[email protected]>2023-12-22 23:21:45 +0800
commitf7a722e1af4369a7b8f78ebdcf53edf57699d34e (patch)
tree816f34971d8f6508d55df1d770516aa4132b8f03 /xmake/modules
parent959d8fee74f9b68948838467d99673565acfe99e (diff)
set remote session
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/private/service/distcc_build/client.lua2
-rw-r--r--xmake/modules/private/service/remote_build/client.lua2
-rw-r--r--xmake/modules/private/service/remote_cache/client.lua2
3 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/private/service/distcc_build/client.lua b/xmake/modules/private/service/distcc_build/client.lua
index 70b5d4784..51cd74fd5 100644
--- a/xmake/modules/private/service/distcc_build/client.lua
+++ b/xmake/modules/private/service/distcc_build/client.lua
@@ -499,7 +499,7 @@ function distcc_build_client:_session_id(addr, port)
return host.session_id
end
end
- return hash.uuid():split("-", {plain = true})[1]:lower()
+ return hash.uuid(option.get("session")):split("-", {plain = true})[1]:lower()
end
-- is connected for the given host
diff --git a/xmake/modules/private/service/remote_build/client.lua b/xmake/modules/private/service/remote_build/client.lua
index f4385015c..9f8c68504 100644
--- a/xmake/modules/private/service/remote_build/client.lua
+++ b/xmake/modules/private/service/remote_build/client.lua
@@ -402,7 +402,7 @@ end
-- get the session id, only for unique project
function remote_build_client:session_id()
- return self:status().session_id or hash.uuid():split("-", {plain = true})[1]:lower()
+ return self:status().session_id or hash.uuid(option.get("session")):split("-", {plain = true})[1]:lower()
end
-- set the given client address
diff --git a/xmake/modules/private/service/remote_cache/client.lua b/xmake/modules/private/service/remote_cache/client.lua
index 2f61ad5ec..4deb111e3 100644
--- a/xmake/modules/private/service/remote_cache/client.lua
+++ b/xmake/modules/private/service/remote_cache/client.lua
@@ -368,7 +368,7 @@ end
-- get the session id, only for unique project
function remote_cache_client:session_id()
- return self:status().session_id or hash.uuid():split("-", {plain = true})[1]:lower()
+ return self:status().session_id or hash.uuid(option.get("session")):split("-", {plain = true})[1]:lower()
end
-- set the given client address