diff options
| author | ruki <[email protected]> | 2020-06-20 19:14:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-06-20 19:14:20 +0800 |
| commit | 8a4d7349f8562a3cf5869dfa4a6460c049f44f3b (patch) | |
| tree | b508e7659b0c6be16fbafeb9481df9751a60992f /xmake/core/platform/platform.lua | |
| parent | 966b8dd7a01b09a93ba21ee4d2df0d471ab2282c (diff) | |
fix check options
Diffstat (limited to 'xmake/core/platform/platform.lua')
| -rw-r--r-- | xmake/core/platform/platform.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua index d29c4d3a4..093f5b4bd 100644 --- a/xmake/core/platform/platform.lua +++ b/xmake/core/platform/platform.lua @@ -189,9 +189,10 @@ function _instance:tool(toolkind) for idx, toolchain_inst in ipairs(toolchains) do program, toolname = toolchain_inst:tool(toolkind) if program then + toolchain_info = {name = toolchain_inst:name(), plat = toolchain_inst:plat(), arch = toolchain_inst:arch()} toolinfo[1] = program toolinfo[2] = toolname - toolinfo[3] = {name = toolchain_inst:name(), plat = toolchain_inst:plat(), arch = toolchain_inst:arch()} + toolinfo[3] = toolchain_info break end end |
