summaryrefslogtreecommitdiff
path: root/xmake/core/tool/compiler.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/tool/compiler.lua')
-rw-r--r--xmake/core/tool/compiler.lua14
1 files changed, 0 insertions, 14 deletions
diff --git a/xmake/core/tool/compiler.lua b/xmake/core/tool/compiler.lua
index 2d305dcf9..541a172b6 100644
--- a/xmake/core/tool/compiler.lua
+++ b/xmake/core/tool/compiler.lua
@@ -93,8 +93,6 @@ end
-- load compiler tool
function compiler._load_tool(sourcekind, target)
-
- -- get program from target
local program, toolname, toolchain_info
if target and target.tool then
program, toolname, toolchain_info = target:tool(sourcekind)
@@ -144,11 +142,7 @@ function compiler.load(sourcekind, target)
compiler._INSTANCES = compiler._INSTANCES or {}
local instance = compiler._INSTANCES[cachekey]
if not instance then
-
- -- new instance
instance = table.inherit(compiler, builder)
-
- -- save the compiler tool
instance._TOOL = compiler_tool
-- load the compiler language from the source kind
@@ -203,8 +197,6 @@ end
-- build the source files (compile and link)
function compiler:build(sourcefiles, targetfile, opt)
-
- -- init options
opt = opt or {}
-- get compile flags
@@ -228,15 +220,11 @@ function compiler:build(sourcefiles, targetfile, opt)
if not targetkind and opt.target and opt.target.targetkind then
targetkind = opt.target:kind()
end
-
- -- get it
return sandbox.load(self:_tool().build, self:_tool(), sourcefiles, targetkind or "binary", targetfile, flags)
end
-- get the build arguments list (compile and link)
function compiler:buildargv(sourcefiles, targetfile, opt)
-
- -- init options
opt = opt or {}
-- get compile flags
@@ -260,8 +248,6 @@ function compiler:buildargv(sourcefiles, targetfile, opt)
if not targetkind and opt.target and opt.target.targetkind then
targetkind = opt.target:kind()
end
-
- -- get it
return self:_tool():buildargv(sourcefiles, targetkind or "binary", targetfile, flags)
end