diff options
| author | ruki <[email protected]> | 2020-06-20 00:38:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-06-19 21:50:59 +0800 |
| commit | f5392149886b2083ec0d6db2adef3da405297fe8 (patch) | |
| tree | 12a41f554b7e4bce55a8fb6f8e46aee2c4eba3f9 /xmake/core/project/project.lua | |
| parent | ca1bd50cc1e0b5939311ac73c61180957763cbbc (diff) | |
improve xcode and msvc toolchains
Diffstat (limited to 'xmake/core/project/project.lua')
| -rw-r--r-- | xmake/core/project/project.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua index 795f863b5..be0694235 100644 --- a/xmake/core/project/project.lua +++ b/xmake/core/project/project.lua @@ -433,9 +433,7 @@ function project._load_targets() if toolchains then t._TOOLCHAINS = {} for _, name in ipairs(table.wrap(toolchains)) do - local toolchain_plat = t:extraconf("toolchains", name, "plat") - local toolchain_arch = t:extraconf("toolchains", name, "arch") - local toolchain_inst, errors = toolchain.load(name, {plat = toolchain_plat, arch = toolchain_arch}) + local toolchain_inst, errors = toolchain.load(name, t:extraconf("toolchains", name)) -- attempt to load toolchain from project if not toolchain_inst then toolchain_inst = project.toolchain(name) |
