summaryrefslogtreecommitdiff
path: root/xmake/core/project/project.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/project/project.lua')
-rw-r--r--xmake/core/project/project.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index e1e328914..2250bfa53 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -1028,7 +1028,8 @@ end
-- get the given toolchain
function project.toolchain(name, opt)
- local info = project._toolchains()[name]
+ local toolchain_name = toolchain.parsename(name) -- we need ignore `@packagename`
+ local info = project._toolchains()[toolchain_name]
if info then
return toolchain.load_withinfo(name, info, opt)
end