diff options
| author | ruki <[email protected]> | 2020-06-20 16:07:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-06-20 16:07:21 +0800 |
| commit | da2e3b83c53752c43b651effeb273cb72090d7b0 (patch) | |
| tree | 0a66afa1a6b6facc6753e970fe66c17343650516 /xmake/core/tool/linker.lua | |
| parent | 281e06a020f7704fe998be52a6ecc2711cfd4fb7 (diff) | |
add runenvs for cl/link
Diffstat (limited to 'xmake/core/tool/linker.lua')
| -rw-r--r-- | xmake/core/tool/linker.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/tool/linker.lua b/xmake/core/tool/linker.lua index baafde7ae..06ae051cb 100644 --- a/xmake/core/tool/linker.lua +++ b/xmake/core/tool/linker.lua @@ -85,13 +85,13 @@ function linker._load_tool(targetkind, sourcekinds, target) for _, _linkerinfo in ipairs(linkerinfos) do -- get program from target - local program, toolname + local program, toolname, toolchain_info if target and target:type() == "target" then - program, toolname = target:tool(_linkerinfo.linkerkind) + program, toolname, toolchain_info = target:tool(_linkerinfo.linkerkind) end -- load the linker tool from the linker kind (with cache) - linkertool, errors = tool.load(_linkerinfo.linkerkind, program, toolname) + linkertool, errors = tool.load(_linkerinfo.linkerkind, {program = program, toolname = toolname, toolchain_info = toolchain_info}) if linkertool then linkerinfo = _linkerinfo linkerinfo.program = program |
