summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2025-01-07 22:45:32 +0800
committerruki <[email protected]>2025-01-07 22:45:32 +0800
commite5ea7bc6347ce4c4a62468138753cedea663bfa9 (patch)
treebcf7ff39f3b3124cf25aa6867a3f9f5ee5fec17a /xmake/modules
parentc184146581f86d95536dafcadd64e8ae000341f2 (diff)
add package for namespace
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/private/action/require/impl/package.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua
index 30c571592..a06ee7a29 100644
--- a/xmake/modules/private/action/require/impl/package.lua
+++ b/xmake/modules/private/action/require/impl/package.lua
@@ -1064,6 +1064,9 @@ function _load_package(packagename, requireinfo, opt)
end
_memcache():set2("packageids", packagename, (packageid or 0) + 1)
end
+ if displayname and package:namespace() then
+ displayname = package:namespace() .. "::" .. displayname
+ end
package:displayname_set(displayname)
-- disable parallelize if the package cache directory conflicts