diff options
| author | ruki <[email protected]> | 2020-05-21 23:07:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-21 12:44:59 +0800 |
| commit | cf943ea441cdb49e426e2a3cedc1134922529644 (patch) | |
| tree | fd9b623c42c6b0d91217d95580bef8f87fb2bc4a /xmake/platforms/linux/check.lua | |
| parent | 7ddbf1f6cb9a11ef792d256bee7da417f4058168 (diff) | |
improve to check toolchains
Diffstat (limited to 'xmake/platforms/linux/check.lua')
| -rw-r--r-- | xmake/platforms/linux/check.lua | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/xmake/platforms/linux/check.lua b/xmake/platforms/linux/check.lua index 71d2e555c..2d3a4a063 100644 --- a/xmake/platforms/linux/check.lua +++ b/xmake/platforms/linux/check.lua @@ -24,28 +24,5 @@ import("private.platform.check_arch") -- check it function main(platform) - - -- check arch check_arch(config, os.arch()) - - -- check toolchains - local toolchains = platform:toolchains() - local idx = 1 - local num = #toolchains - local standalone = false - while idx <= num do - local toolchain = toolchains[idx] - -- we need remove other standalone toolchains if standalone toolchain found - if (standalone and toolchain:standalone()) or not toolchain:check() then - table.remove(toolchains, idx) - num = num - 1 - else - if toolchain:standalone() then - standalone = true - end - idx = idx + 1 - end - end - assert(#toolchains > 0, "toolchains not found!") end - |
