From cf943ea441cdb49e426e2a3cedc1134922529644 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 21 May 2020 23:07:29 +0800 Subject: improve to check toolchains --- xmake/platforms/linux/check.lua | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'xmake/platforms/linux/check.lua') 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 - -- cgit v1.3.1