From b5aa7bfa552889527db96a45a4cef91559f7aede Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 6 Feb 2024 00:54:21 +0800 Subject: fix toolchain format --- xmake/core/platform/platform.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmake/core/platform/platform.lua') diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua index f9a8fba77..54ec35747 100644 --- a/xmake/core/platform/platform.lua +++ b/xmake/core/platform/platform.lua @@ -552,8 +552,8 @@ function platform.archs(plat, arch) return platform.get("archs", plat, arch) end --- get the format of the given target kind for platform -function platform.format(targetkind, plat, arch) +-- get the format of the given kind for platform +function platform.format(kind, plat, arch) -- get platform instance local instance, errors = platform.load(plat, arch) @@ -564,7 +564,7 @@ function platform.format(targetkind, plat, arch) -- get formats local formats = instance:formats() if formats then - return formats[targetkind] + return formats[kind] end end -- cgit v1.3.1