From ca8ee5890b4dc9fcb06dd5700c78210fc3c1076e Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 19 Mar 2021 00:42:25 +0800 Subject: remove unused codes --- xmake/core/project/project.lua | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua index 86990a2cb..aa2c36ff2 100644 --- a/xmake/core/project/project.lua +++ b/xmake/core/project/project.lua @@ -360,26 +360,6 @@ function project._load_target(t, requires) return false, errors end - -- load toolchains - local toolchains = t:get("toolchains") - if toolchains then - t._TOOLCHAINS = {} - for _, name in ipairs(table.wrap(toolchains)) do - local toolchain_opt = table.copy(t:extraconf("toolchains", name)) - toolchain_opt.arch = t:arch() - toolchain_opt.plat = t:plat() - local toolchain_inst, errors = toolchain.load(name, toolchain_opt) - -- attempt to load toolchain from project - if not toolchain_inst then - toolchain_inst = project.toolchain(name, toolchain_opt) - end - if not toolchain_inst then - return false, errors - end - table.insert(t._TOOLCHAINS, toolchain_inst) - end - end - -- do after_load() for target and all rules ok, errors = t:_load_after() if not ok then -- cgit v1.3.1