diff options
| author | ruki <[email protected]> | 2024-02-06 00:54:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-02-06 00:54:21 +0800 |
| commit | b5aa7bfa552889527db96a45a4cef91559f7aede (patch) | |
| tree | c624ff938262eabaac9a7e6beebbbed42e42a6e2 /xmake/core/platform/platform.lua | |
| parent | 8fa5433f3f8136c627dd594f1249edf175896cd8 (diff) | |
fix toolchain format
Diffstat (limited to 'xmake/core/platform/platform.lua')
| -rw-r--r-- | xmake/core/platform/platform.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
