summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-05-18 22:45:13 +0800
committerGitHub <[email protected]>2025-05-18 22:45:13 +0800
commit285b19a586c31295d4164d948d25c79f2914cd76 (patch)
tree6d5f5815b2d1fbf55d676e5770ea5c6a85f886dc
parentf5b81965f5d2f9773ee7245e181ca2950f501453 (diff)
parente8c58564e87e198cd641249b062e3f3368a332cf (diff)
Merge pull request #6469 from xmake-io/namespace
fix namespace/packages #6465
-rw-r--r--xmake/core/project/project.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index 697b64c7f..5a069f644 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -1092,7 +1092,7 @@ function project.requires_str()
local ns_requires_str, ns_requires_extra = project.get(namespace .. "::requires"), project.get(namespace .. "::__extra_requires")
if ns_requires_str then
requires_str = table.wrap(requires_str)
- table.insert(requires_str, ns_requires_str)
+ table.join2(requires_str, ns_requires_str)
end
if ns_requires_extra then
requires_extra = table.wrap(requires_extra)
@@ -1110,7 +1110,7 @@ function project.requires_str()
local ns_requireconfs_str, ns_requireconfs_extra = project.get(namespace .. "::requireconfs"), project.get(namespace .. "::__extra_requireconfs")
if ns_requireconfs_str then
requireconfs_str = table.wrap(requireconfs_str)
- table.insert(requireconfs_str, ns_requireconfs_str)
+ table.join2(requireconfs_str, ns_requireconfs_str)
end
if ns_requireconfs_extra then
requireconfs_extra = table.wrap(requireconfs_extra)