From da2e3b83c53752c43b651effeb273cb72090d7b0 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 20 Jun 2020 16:07:21 +0800 Subject: add runenvs for cl/link --- xmake/core/tool/compiler.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xmake/core/tool/compiler.lua') diff --git a/xmake/core/tool/compiler.lua b/xmake/core/tool/compiler.lua index e56f2d300..c47ffb9e1 100644 --- a/xmake/core/tool/compiler.lua +++ b/xmake/core/tool/compiler.lua @@ -78,13 +78,13 @@ end function compiler._load_tool(sourcekind, target) -- get program from target - local program, toolname + local program, toolname, toolchain_info if target and target:type() == "target" then - program, toolname = target:tool(sourcekind) + program, toolname, toolchain_info = target:tool(sourcekind) end -- load the compiler tool from the source kind - local result, errors = tool.load(sourcekind, program, toolname) + local result, errors = tool.load(sourcekind, {program = program, toolname = toolname, toolchain_info = toolchain_info}) if not result then return nil, errors end @@ -236,7 +236,7 @@ function compiler:compile(sourcefiles, objectfile, opt) end -- compile it - return sandbox.load(self:_tool().compile, self:_tool(), sourcefiles, objectfile, opt.dependinfo, compflags) + return sandbox.load(self:_tool().compile, self:_tool(), sourcefiles, objectfile, opt.dependinfo, compflags, opt) end -- get the compile arguments list -- cgit v1.3.1