diff options
| author | ruki <[email protected]> | 2021-03-19 00:42:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-19 00:42:25 +0800 |
| commit | ca8ee5890b4dc9fcb06dd5700c78210fc3c1076e (patch) | |
| tree | ed8bcaac78dab385b2cd4237af68c68ca8e5ec88 | |
| parent | 66a47b5aa01fc5ccd4897f6d81da4f9b6baab428 (diff) | |
remove unused codes
| -rw-r--r-- | xmake/core/project/project.lua | 20 |
1 files changed, 0 insertions, 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 |
